internal void WriteTo(BinaryWriter writer, uint version)
        {
            TerrainSun.WriteTo(writer);
            ObjectSun.WriteTo(writer);

            if (version >= 7)
            {
                InfantrySun.WriteTo(writer);
            }

            TerrainAccent1.WriteTo(writer);
            ObjectAccent1.WriteTo(writer);

            if (version >= 7)
            {
                InfantryAccent1.WriteTo(writer);
            }

            TerrainAccent2.WriteTo(writer);
            ObjectAccent2.WriteTo(writer);

            if (version >= 7)
            {
                InfantryAccent2.WriteTo(writer);
            }
        }
예제 #2
0
        internal void WriteTo(BinaryWriter writer)
        {
            TerrainSun.WriteTo(writer);
            ObjectSun.WriteTo(writer);

            TerrainAccent1.WriteTo(writer);
            TerrainAccent2.WriteTo(writer);

            ObjectAccent1.WriteTo(writer);
            ObjectAccent2.WriteTo(writer);
        }
예제 #3
0
 public int GetSize()
 {
     return(TerrainAmbientColor.GetSize() +
            ObjectAmbientColor.GetSize() +
            TerrainSun.GetSize() +
            ObjectsSun.GetSize() +
            TerrainAccent1.GetSize() +
            ObjectsAccent1.GetSize() +
            TerrainAccent2.GetSize() +
            ObjectsAccent2.GetSize() +
            12 * 4); //null
 }