Made AnimationEditor compatible with Dictionary SpriteMaps

Added MonoGame Pipeline's IntermediateSerializer and needed classes from the pipeline and  MonoGame.Framework.Utilities to make AnimationEditor capable of reading Dictionaries
This commit is contained in:
quinnvoker
2018-11-24 16:43:44 -08:00
parent 82ad36e485
commit c585f312a5
52 changed files with 3576 additions and 64 deletions
@@ -0,0 +1,36 @@
using System;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
namespace MonoGame.Utilities
{
internal static partial class ReflectionHelpers
{
/// <summary>
/// Generics handler for Marshal.SizeOf
/// </summary>
internal static class SizeOf<T>
{
static int _sizeOf;
static SizeOf()
{
_sizeOf = Marshal.SizeOf<T>();
}
static public int Get()
{
return _sizeOf;
}
}
/// <summary>
/// Fallback handler for Marshal.SizeOf(type)
/// </summary>
internal static int ManagedSizeOf(Type type)
{
return Marshal.SizeOf(type);
}
}
}