freeso/TSOClient/tso.content/Codecs/AnimationCodec.cs
riperiperi b57ebbd141 Cleanup: Remove most unused usings and MPL per-file licenses
MPL per-file was used in older project files, but should apply to the whole project, so having it there was redundant.
2023-11-25 03:45:29 +00:00

26 lines
618 B
C#

using FSO.Vitaboy;
using FSO.Content.Framework;
using FSO.Files.Utils;
namespace FSO.Content.Codecs
{
/// <summary>
/// Codec for animations (*.anim).
/// </summary>
public class AnimationCodec : IContentCodec<Animation>
{
#region IContentCodec<Animation> Members
public override object GenDecode(System.IO.Stream stream)
{
var ani = new Animation();
using (var io = IoBuffer.FromStream(stream, ByteOrder.BIG_ENDIAN))
{
ani.Read(io, false);
}
return ani;
}
#endregion
}
}