mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-18 20:16:44 -04:00
Added FSO.Files for use with the API server
Don't ask me. FreeSO is the prime example of dependency hell.
This commit is contained in:
parent
4b5e584eeb
commit
8fec258215
104 changed files with 14653 additions and 163 deletions
38
server/tso.files/Formats/IFF/Chunks/HOUS.cs
Executable file
38
server/tso.files/Formats/IFF/Chunks/HOUS.cs
Executable file
|
@ -0,0 +1,38 @@
|
|||
using FSO.Files.Utils;
|
||||
using System.IO;
|
||||
|
||||
namespace FSO.Files.Formats.IFF.Chunks
|
||||
{
|
||||
public class HOUS : IffChunk
|
||||
{
|
||||
public int Version;
|
||||
public int UnknownFlag;
|
||||
public int UnknownOne;
|
||||
public int UnknownNumber;
|
||||
public int UnknownNegative;
|
||||
public short CameraDir;
|
||||
public short UnknownOne2;
|
||||
public short UnknownFlag2;
|
||||
public uint GUID;
|
||||
public string RoofName;
|
||||
|
||||
public override void Read(IffFile iff, Stream stream)
|
||||
{
|
||||
using (var io = IoBuffer.FromStream(stream, ByteOrder.LITTLE_ENDIAN))
|
||||
{
|
||||
var zero = io.ReadInt32();
|
||||
Version = io.ReadInt32();
|
||||
var suoh = io.ReadCString(4);
|
||||
UnknownFlag = io.ReadInt32();
|
||||
UnknownOne = io.ReadInt32();
|
||||
UnknownNumber = io.ReadInt32();
|
||||
UnknownNegative = io.ReadInt32();
|
||||
CameraDir = io.ReadInt16();
|
||||
UnknownOne2 = io.ReadInt16();
|
||||
UnknownFlag2 = io.ReadInt16();
|
||||
GUID = io.ReadUInt32();
|
||||
RoofName = io.ReadNullTerminatedString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue