mirror of
https://github.com/riperiperi/FreeSO
synced 2026-08-13 20:26:13 -04:00
MPL per-file was used in older project files, but should apply to the whole project, so having it there was redundant.
26 lines
618 B
C#
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
|
|
}
|
|
}
|