Example #1
0
        public static SkyObject Read(DatReader datReader)
        {
            SkyObject obj = new SkyObject();

            obj.BeginTime          = datReader.ReadSingle();
            obj.EndTime            = datReader.ReadSingle();
            obj.BeginAngle         = datReader.ReadSingle();
            obj.EndAngle           = datReader.ReadSingle();
            obj.TexVelocityX       = datReader.ReadSingle();
            obj.TexVelocityY       = datReader.ReadSingle();
            obj.DefaultGFXObjectId = datReader.ReadUInt32();
            obj.DefaultPESObjectId = datReader.ReadUInt32();
            obj.Properties         = datReader.ReadUInt32();
            return(obj);
        }
Example #2
0
        public static DayGroup Read(DatReader datReader)
        {
            DayGroup obj = new DayGroup();

            obj.ChanceOfOccur = datReader.ReadSingle();
            obj.DayName       = datReader.ReadPString();
            datReader.AlignBoundary();

            uint num_sky_objects = datReader.ReadUInt32();

            for (uint i = 0; i < num_sky_objects; i++)
            {
                obj.SkyObjects.Add(SkyObject.Read(datReader));
            }

            uint num_sky_times = datReader.ReadUInt32();

            for (uint i = 0; i < num_sky_times; i++)
            {
                obj.SkyTime.Add(SkyTimeOfDay.Read(datReader));
            }

            return(obj);
        }