public override void WriteData(ESPWriter writer) { if (EditorID != null) { EditorID.WriteBinary(writer); } if (ImageSpaceModifierSunrise != null) { ImageSpaceModifierSunrise.WriteBinary(writer); } if (ImageSpaceModifierDay != null) { ImageSpaceModifierDay.WriteBinary(writer); } if (ImageSpaceModifierSunset != null) { ImageSpaceModifierSunset.WriteBinary(writer); } if (ImageSpaceModifierNight != null) { ImageSpaceModifierNight.WriteBinary(writer); } if (ImageSpaceModifierHighNoon != null) { ImageSpaceModifierHighNoon.WriteBinary(writer); } if (ImageSpaceModifierMidnight != null) { ImageSpaceModifierMidnight.WriteBinary(writer); } if (CloudTextureLayer0 != null) { CloudTextureLayer0.WriteBinary(writer); } if (CloudTextureLayer1 != null) { CloudTextureLayer1.WriteBinary(writer); } if (CloudTextureLayer2 != null) { CloudTextureLayer2.WriteBinary(writer); } if (CloudTextureLayer3 != null) { CloudTextureLayer3.WriteBinary(writer); } if (Model != null) { Model.WriteBinary(writer); } if (Unknown != null) { Unknown.WriteBinary(writer); } if (CloudLayerSpeed != null) { CloudLayerSpeed.WriteBinary(writer); } if (CloudLayerColors != null) { CloudLayerColors.WriteBinary(writer); } if (EnvironmentalColors != null) { EnvironmentalColors.WriteBinary(writer); } if (WeatherFogDistance != null) { WeatherFogDistance.WriteBinary(writer); } if (Unused != null) { Unused.WriteBinary(writer); } if (Data != null) { Data.WriteBinary(writer); } if (Sounds != null) { foreach (var item in Sounds) { item.WriteBinary(writer); } } }