public void Save(BinaryWriter stream) { for (int i = 0; i < 3; i++) { FSHelpers.Write16(stream, Vertices[i]); } FSHelpers.Write16(stream, Unknown1); FSHelpers.Write16(stream, Unknown2); }
public void WriteData(BinaryWriter stream) { FSHelpers.WriteString(stream, Name, 8); FSHelpers.Write8(stream, EventIndex); FSHelpers.Write8(stream, Unknown1); FSHelpers.Write8(stream, SpawnType); FSHelpers.Write8(stream, RoomNumber); FSHelpers.WriteFloat(stream, Position.X); FSHelpers.WriteFloat(stream, Position.Y); FSHelpers.WriteFloat(stream, Position.Z); FSHelpers.Write16(stream, (ushort)Rotation.X); FSHelpers.Write16(stream, (ushort)Rotation.Y); FSHelpers.Write16(stream, (ushort)Rotation.Z); FSHelpers.WriteArray(stream, FSHelpers.ToBytes(0xFFFF, 2)); }