Exemplo n.º 1
0
            public override void LoadData(byte[] data, ref int srcOffset)
            {
                //First 16 bytes are 80 00 00 00 (repeated 4 times). Unknown why.
                Unknown1 = (uint)FSHelpers.Read32(data, srcOffset);
                Unknown2 = (uint)FSHelpers.Read32(data, srcOffset + 4);
                Unknown3 = (uint)FSHelpers.Read32(data, srcOffset + 8);
                Unknown4 = (uint)FSHelpers.Read32(data, srcOffset + 12);
                srcOffset += 16;

                HorizonCloudColor = new ByteColorAlpha(data, ref srcOffset);
                CenterCloudColor = new ByteColorAlpha(data, ref srcOffset);

                CenterSkyColor = new ByteColor(data, ref srcOffset);
                HorizonColor = new ByteColor(data, ref srcOffset);
                SkyFadeTo = new ByteColor(data, ref srcOffset);

                Padding1 = FSHelpers.Read8(data, srcOffset);
                Padding2 = FSHelpers.Read8(data, srcOffset + 1);
                Padding3 = FSHelpers.Read8(data, srcOffset + 2);
                srcOffset += 3;
            }
Exemplo n.º 2
0
 public VirtChunk()
     : base("VIRT", "Skybox Lighting")
 {
     HorizonCloudColor = new ByteColorAlpha();
     CenterCloudColor = new ByteColorAlpha();
     CenterSkyColor = new ByteColor();
     HorizonColor = new ByteColor();
     SkyFadeTo = new ByteColor();
 }
Exemplo n.º 3
0
            public PaleChunk()
                : base("PALE", "Palette")
            {
                ActorAmbient = new ByteColor();
                ShadowColor = new ByteColor();
                RoomFillColor = new ByteColor();
                RoomAmbient = new ByteColor();
                WaveColor = new ByteColor();
                OceanColor = new ByteColor();
                UnknownColor1 = new ByteColor();
                UnknownColor2 = new ByteColor();
                DoorwayColor = new ByteColor();
                UnknownColor3 = new ByteColor();
                FogColor = new ByteColor();

                VirtIndex = 0;

                OceanFadeInto = new ByteColorAlpha();
                ShoreFadeInto = new ByteColorAlpha();
            }
Exemplo n.º 4
0
            public override void LoadData(byte[] data, ref int srcOffset)
            {
                ActorAmbient = new ByteColor(data, ref srcOffset);
                ShadowColor = new ByteColor(data, ref srcOffset);
                RoomFillColor = new ByteColor(data, ref srcOffset);
                RoomAmbient = new ByteColor(data, ref srcOffset);
                WaveColor = new ByteColor(data, ref srcOffset);
                OceanColor = new ByteColor(data, ref srcOffset);
                UnknownColor1 = new ByteColor(data, ref srcOffset); //Unknown
                UnknownColor2 = new ByteColor(data, ref srcOffset); //Unknown
                DoorwayColor = new ByteColor(data, ref srcOffset);
                UnknownColor3 = new ByteColor(data, ref srcOffset); //Unknown
                FogColor = new ByteColor(data, ref srcOffset);

                VirtIndex = FSHelpers.Read8(data, srcOffset);
                Padding1 = FSHelpers.Read8(data, srcOffset + 1);
                Padding2 = FSHelpers.Read8(data, srcOffset + 2);
                srcOffset += 3; //Read8 + 2 Padding

                OceanFadeInto = new ByteColorAlpha(data, ref srcOffset);
                ShoreFadeInto = new ByteColorAlpha(data, ref srcOffset);
            }
Exemplo n.º 5
0
            public override void LoadData(byte[] data, ref int srcOffset)
            {
                Transform.Position.X = FSHelpers.ConvertIEEE754Float((uint)FSHelpers.Read32(data, srcOffset + 0));
                Transform.Position.Y = FSHelpers.ConvertIEEE754Float((uint)FSHelpers.Read32(data, srcOffset + 4));
                Transform.Position.Z = FSHelpers.ConvertIEEE754Float((uint)FSHelpers.Read32(data, srcOffset + 8));

                Scale.X = FSHelpers.ConvertIEEE754Float((uint)FSHelpers.Read32(data, srcOffset + 12));
                Scale.Y = FSHelpers.ConvertIEEE754Float((uint)FSHelpers.Read32(data, srcOffset + 16));
                Scale.Z = FSHelpers.ConvertIEEE754Float((uint)FSHelpers.Read32(data, srcOffset + 20));

                srcOffset += 24;
                Color = new ByteColorAlpha(data, ref srcOffset);
            }