public static SkyTimeOfDay Read(DatReader datReader) { SkyTimeOfDay obj = new SkyTimeOfDay(); obj.Begin = datReader.ReadSingle(); obj.DirBright = datReader.ReadSingle(); obj.DirHeading = datReader.ReadSingle(); obj.DirPitch = datReader.ReadSingle(); obj.DirColor = datReader.ReadUInt32(); obj.AmbBright = datReader.ReadSingle(); obj.AmbColor = datReader.ReadUInt32(); obj.MinWorldFog = datReader.ReadSingle(); obj.MaxWorldFog = datReader.ReadSingle(); obj.WorldFogColor = datReader.ReadUInt32(); obj.WorldFog = datReader.ReadUInt32(); uint num_sky_obj_replace = datReader.ReadUInt32(); for (uint i = 0; i < num_sky_obj_replace; i++) { obj.SkyObjReplace.Add(SkyObjectReplace.Read(datReader)); } return(obj); }
public static SkyObjectReplace Read(DatReader datReader) { SkyObjectReplace obj = new SkyObjectReplace(); obj.ObjectIndex = datReader.ReadUInt32(); obj.GFXObjId = datReader.ReadUInt32(); obj.Rotate = datReader.ReadSingle(); obj.Transparent = datReader.ReadSingle(); obj.Luminosity = datReader.ReadSingle(); obj.MaxBright = datReader.ReadSingle(); return(obj); }