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)); }
public void Save(BinaryWriter stream) { FSHelpers.WriteFloat(stream, Position.X); FSHelpers.WriteFloat(stream, Position.Y); FSHelpers.WriteFloat(stream, Position.Z); }