Beispiel #1
0
            public void Save(BinaryWriter stream)
            {
                FSHelpers.WriteString(stream, Magic, 4);
                FSHelpers.WriteString(stream, Type, 4);
                FSHelpers.Write32(stream, FileSize);
                FSHelpers.Write32(stream, ChunkCount);

                //Write in the unused tag and padding
                FSHelpers.WriteArray(stream, FSHelpers.ToBytes(0x53565233, 4));
                FSHelpers.WriteArray(stream, FSHelpers.ToBytes(0xFFFFFFFF, 4));
                FSHelpers.WriteArray(stream, FSHelpers.ToBytes(0xFFFFFFFF, 4));
                FSHelpers.WriteArray(stream, FSHelpers.ToBytes(0xFFFFFFFF, 4));
            }
Beispiel #2
0
        public void WriteData(BinaryWriter stream)
        {
            //Fixed values that doesn't seem to change.
            FSHelpers.WriteArray(stream, FSHelpers.ToBytes(0x80000000, 4));
            FSHelpers.WriteArray(stream, FSHelpers.ToBytes(0x80000000, 4));
            FSHelpers.WriteArray(stream, FSHelpers.ToBytes(0x80000000, 4));
            FSHelpers.WriteArray(stream, FSHelpers.ToBytes(0x80000000, 4));

            FSHelpers.WriteArray(stream, HorizonCloudColor.GetBytes());
            FSHelpers.WriteArray(stream, CenterCloudColor.GetBytes());
            FSHelpers.WriteArray(stream, CenterSkyColor.GetBytes());
            FSHelpers.WriteArray(stream, HorizonColor.GetBytes());
            FSHelpers.WriteArray(stream, SkyFadeTo.GetBytes());

            FSHelpers.WriteArray(stream, FSHelpers.ToBytes(0xFFFFFF, 3)); //3 Bytes Padding
        }
Beispiel #3
0
        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));
        }
Beispiel #4
0
        public void WriteData(BinaryWriter stream)
        {
            FSHelpers.WriteArray(stream, ActorAmbient.GetBytes());
            FSHelpers.WriteArray(stream, ShadowColor.GetBytes());
            FSHelpers.WriteArray(stream, RoomFillColor.GetBytes());
            FSHelpers.WriteArray(stream, RoomAmbient.GetBytes());
            FSHelpers.WriteArray(stream, WaveColor.GetBytes());
            FSHelpers.WriteArray(stream, OceanColor.GetBytes());
            FSHelpers.WriteArray(stream, UnknownColor1.GetBytes()); //Unknown
            FSHelpers.WriteArray(stream, UnknownColor2.GetBytes()); //Unknown
            FSHelpers.WriteArray(stream, DoorwayColor.GetBytes());
            FSHelpers.WriteArray(stream, UnknownColor3.GetBytes()); //Unknown

            FSHelpers.WriteArray(stream, FogColor.GetBytes());
            FSHelpers.Write8(stream, VirtIndex);
            FSHelpers.WriteArray(stream, FSHelpers.ToBytes(0x0000, 2));//Two bytes padding on Virt Index

            FSHelpers.WriteArray(stream, OceanFadeInto.GetBytes());
            FSHelpers.WriteArray(stream, ShoreFadeInto.GetBytes());
        }