Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        private DayTimeLuminanceInfo ParseLuminance(XmlElement luminanceXML)
        {
            DayTimeLuminanceInfo luminance = new DayTimeLuminanceInfo(
                GetAttributeFloatValue(luminanceXML, "normalizedTime"),
                GetAttributeIntValue(luminanceXML, "luminancePercent"));

            return luminance;
        }
Esempio n. 3
0
        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);
            }
        }