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); } }
internal void WriteTo(BinaryWriter writer) { TerrainSun.WriteTo(writer); ObjectSun.WriteTo(writer); TerrainAccent1.WriteTo(writer); TerrainAccent2.WriteTo(writer); ObjectAccent1.WriteTo(writer); ObjectAccent2.WriteTo(writer); }
public int GetSize() { return(TerrainAmbientColor.GetSize() + ObjectAmbientColor.GetSize() + TerrainSun.GetSize() + ObjectsSun.GetSize() + TerrainAccent1.GetSize() + ObjectsAccent1.GetSize() + TerrainAccent2.GetSize() + ObjectsAccent2.GetSize() + 12 * 4); //null }