public void Load(System.IO.BinaryReader br) { dayDuration = br.ReadSingle(); skyColor = SerializationUtils.ReadColor(br); ambientLightLuminance = br.ReadByte(); dayTime = br.ReadSingle(); int n = br.ReadInt32(); dayTimeLuminances = new DayTimeLuminanceInfo[n]; for (int i = 0; i < n; i++) { int lp = br.ReadInt32(); float ttp = br.ReadSingle(); dayTimeLuminances[i] = new DayTimeLuminanceInfo(ttp, lp); } }
private DayTimeLuminanceInfo ParseLuminance(XmlElement luminanceXML) { DayTimeLuminanceInfo luminance = new DayTimeLuminanceInfo( GetAttributeFloatValue(luminanceXML, "normalizedTime"), GetAttributeIntValue(luminanceXML, "luminancePercent")); return luminance; }