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
26
server/tso.files/Formats/IFF/Chunks/THMB.cs
Executable file
26
server/tso.files/Formats/IFF/Chunks/THMB.cs
Executable file
|
@ -0,0 +1,26 @@
|
|||
using FSO.Files.Utils;
|
||||
using System.IO;
|
||||
|
||||
namespace FSO.Files.Formats.IFF.Chunks
|
||||
{
|
||||
public class THMB : IffChunk
|
||||
{
|
||||
public int Width;
|
||||
public int Height;
|
||||
public int BaseYOff;
|
||||
public int XOff;
|
||||
public int AddYOff; //accounts for difference between roofed and unroofed. relative to the base.
|
||||
|
||||
public override void Read(IffFile iff, Stream stream)
|
||||
{
|
||||
using (var io = IoBuffer.FromStream(stream, ByteOrder.LITTLE_ENDIAN))
|
||||
{
|
||||
Width = io.ReadInt32();
|
||||
Height = io.ReadInt32();
|
||||
BaseYOff = io.ReadInt32();
|
||||
XOff = io.ReadInt32(); //0 in all cases i've found, pretty much?
|
||||
AddYOff = io.ReadInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue