public static SkyTimeOfDay Read(StreamReader data, StreamWriter outputData, bool write = true) { SkyTimeOfDay obj = new SkyTimeOfDay(); obj.Begin = Utils.readAndWriteSingle(data, outputData, write); obj.DirBright = Utils.readAndWriteSingle(data, outputData, write); obj.DirHeading = Utils.readAndWriteSingle(data, outputData, write); obj.DirPitch = Utils.readAndWriteSingle(data, outputData, write); obj.DirColor = Utils.readAndWriteUInt32(data, outputData, write); obj.AmbBright = Utils.readAndWriteSingle(data, outputData, write); obj.AmbColor = Utils.readAndWriteUInt32(data, outputData, write); obj.MinWorldFog = Utils.readAndWriteSingle(data, outputData, write); obj.MaxWorldFog = Utils.readAndWriteSingle(data, outputData, write); obj.WorldFogColor = Utils.readAndWriteUInt32(data, outputData, write); obj.WorldFog = Utils.readAndWriteUInt32(data, outputData, write); uint num_sky_obj_replace = Utils.readAndWriteUInt32(data, outputData, write); obj.SkyObjReplace = new List <SkyObjectReplace>(); for (uint i = 0; i < num_sky_obj_replace; i++) { obj.SkyObjReplace.Add(SkyObjectReplace.Read(data, outputData, write)); } return(obj); }
public static SkyObjectReplace Read(StreamReader data, StreamWriter outputData, bool write = true) { SkyObjectReplace obj = new SkyObjectReplace(); obj.ObjectIndex = Utils.readAndWriteUInt32(data, outputData, write); obj.GFXObjId = Utils.readAndWriteUInt32(data, outputData, write); obj.Rotate = Utils.readAndWriteSingle(data, outputData, write); obj.Transparent = Utils.readAndWriteSingle(data, outputData, write); obj.Luminosity = Utils.readAndWriteSingle(data, outputData, write); obj.MaxBright = Utils.readAndWriteSingle(data, outputData, write); return(obj); }