public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader) { System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader)); this.Type = ((TypeEnum)(binaryReader.ReadInt16())); this.ScenarioLightStructFlags = ((Flags)(binaryReader.ReadInt16())); this.LightmapType = ((LightmapTypeEnum)(binaryReader.ReadInt16())); this.ScenarioLightStructLightmapFlags = ((LightmapFlags)(binaryReader.ReadInt16())); this.LightmapHalfLife = binaryReader.ReadSingle(); this.LightmapLightScale = binaryReader.ReadSingle(); this.TargetPoint = binaryReader.ReadVector3(); this.Width = binaryReader.ReadSingle(); this.HeightScale = binaryReader.ReadSingle(); this.FieldOfView = binaryReader.ReadSingle(); this.FalloffDistance = binaryReader.ReadSingle(); this.CutoffDistance = binaryReader.ReadSingle(); return(pointerQueue); }
public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader) { System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader)); this.Template = binaryReader.ReadTagReference(); this.MaterialName = binaryReader.ReadStringID(); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(80)); this.fieldpad = binaryReader.ReadBytes(2); this.ShaderFlags = ((Flags)(binaryReader.ReadInt16())); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(40)); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(124)); this.fieldpad0 = binaryReader.ReadBytes(4); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(8)); this.LightResponse = binaryReader.ReadTagReference(); this.ShaderLODBias = ((ShaderLODBiasEnum)(binaryReader.ReadInt16())); this.SpecularType = ((SpecularTypeEnum)(binaryReader.ReadInt16())); this.LightmapType = ((LightmapTypeEnum)(binaryReader.ReadInt16())); this.fieldpad1 = binaryReader.ReadBytes(2); this.LightmapSpecularBrightness = binaryReader.ReadSingle(); this.LightmapAmbientBias = binaryReader.ReadSingle(); this.AddedDepthBiasOffset = binaryReader.ReadSingle(); this.AddedDepthBiasSlopeScale = binaryReader.ReadSingle(); return(pointerQueue); }