コード例 #1
0
 internal ScenarioLightStructBlockBase(BinaryReader binaryReader)
 {
     this.type                                 = (Type)binaryReader.ReadInt16();
     this.flags                                = (Flags)binaryReader.ReadInt16();
     this.lightmapType                         = (LightmapType)binaryReader.ReadInt16();
     this.lightmapFlags                        = (LightmapFlags)binaryReader.ReadInt16();
     this.lightmapHalfLife                     = binaryReader.ReadSingle();
     this.lightmapLightScale                   = binaryReader.ReadSingle();
     this.targetPoint                          = binaryReader.ReadVector3();
     this.widthWorldUnits                      = binaryReader.ReadSingle();
     this.heightScaleWorldUnits                = binaryReader.ReadSingle();
     this.fieldOfViewDegrees                   = binaryReader.ReadSingle();
     this.falloffDistanceWorldUnits            = binaryReader.ReadSingle();
     this.cutoffDistanceWorldUnitsFromFarPlane = binaryReader.ReadSingle();
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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.DeviceDeviceFlags                 = ((DeviceFlags)(binaryReader.ReadInt32()));
     this.PowerTransitionTime               = binaryReader.ReadSingle();
     this.PowerAccelerationTime             = binaryReader.ReadSingle();
     this.PositionTransitionTime            = binaryReader.ReadSingle();
     this.PositionAccelerationTime          = binaryReader.ReadSingle();
     this.DepoweredPositionTransitionTime   = binaryReader.ReadSingle();
     this.DepoweredPositionAccelerationTime = binaryReader.ReadSingle();
     this.DeviceLightmapFlags               = ((LightmapFlags)(binaryReader.ReadInt16()));
     this.fieldpad3   = binaryReader.ReadBytes(2);
     this.Open        = binaryReader.ReadTagReference();
     this.Close       = binaryReader.ReadTagReference();
     this.Opened      = binaryReader.ReadTagReference();
     this.Closed      = binaryReader.ReadTagReference();
     this.Depowered   = binaryReader.ReadTagReference();
     this.Repowered   = binaryReader.ReadTagReference();
     this.DelayTime   = binaryReader.ReadSingle();
     this.DelayEffect = binaryReader.ReadTagReference();
     this.AutomaticActivationRadius = binaryReader.ReadSingle();
     return(pointerQueue);
 }
コード例 #4
0
 public ScenarioLightStruct(BinaryReader binaryReader)
 {
     this.type = (Type)binaryReader.ReadInt16();
     this.flags = (Flags)binaryReader.ReadInt16();
     this.lightmapType = (LightmapType)binaryReader.ReadInt16();
     this.lightmapFlags = (LightmapFlags)binaryReader.ReadInt16();
     this.lightmapHalfLife = binaryReader.ReadSingle();
     this.lightmapLightScale = binaryReader.ReadSingle();
     this.targetPoint = binaryReader.ReadVector3();
     this.widthWorldUnits = binaryReader.ReadSingle();
     this.heightScaleWorldUnits = binaryReader.ReadSingle();
     this.fieldOfViewDegrees = binaryReader.ReadSingle();
     this.falloffDistanceWorldUnits = binaryReader.ReadSingle();
     this.cutoffDistanceWorldUnitsFromFarPlane = binaryReader.ReadSingle();
 }