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
597 B
C#
26 lines
597 B
C#
using FSO.Content.Framework;
|
|
using FSO.Vitaboy;
|
|
using FSO.Files.Utils;
|
|
|
|
namespace FSO.Content.Codecs
|
|
{
|
|
/// <summary>
|
|
/// Codec for meshes (*.mesh).
|
|
/// </summary>
|
|
public class MeshCodec : IContentCodec<Mesh>
|
|
{
|
|
#region IContentCodec<Mesh> Members
|
|
|
|
public override object GenDecode(System.IO.Stream stream)
|
|
{
|
|
var mesh = new Mesh();
|
|
using (var io = IoBuffer.FromStream(stream, ByteOrder.BIG_ENDIAN))
|
|
{
|
|
mesh.Read(io, false);
|
|
}
|
|
return mesh;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|