Example #1
0
 internal ObjectChangeColorFunctionBase(BinaryReader binaryReader)
 {
     this.invalidName_    = binaryReader.ReadBytes(4);
     this.scaleFlags      = (ScaleFlags)binaryReader.ReadInt32();
     this.colorLowerBound = binaryReader.ReadColorR8G8B8();
     this.colorUpperBound = binaryReader.ReadColorR8G8B8();
     this.darkenBy        = binaryReader.ReadStringID();
     this.scaleBy         = binaryReader.ReadStringID();
 }
Example #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.fieldpad = binaryReader.ReadBytes(4);
     this.ObjectChangeColorFunctionScaleFlags = ((ScaleFlags)(binaryReader.ReadInt32()));
     this.ColorLowerBound = binaryReader.ReadColorR8G8B8();
     this.ColorUpperBound = binaryReader.ReadColorR8G8B8();
     this.DarkenBy        = binaryReader.ReadStringID();
     this.ScaleBy         = binaryReader.ReadStringID();
     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.Duration           = binaryReader.ReadRange();
     this.TransitionDuration = binaryReader.ReadRange();
     this.Physics            = binaryReader.ReadTagReference();
     this.Width           = binaryReader.ReadSingle();
     this.ColorLowerBound = binaryReader.ReadVector4();
     this.ColorUpperBound = binaryReader.ReadVector4();
     this.ContrailPointStatesScaleFlags = ((ScaleFlags)(binaryReader.ReadInt32()));
     return(pointerQueue);
 }
Example #4
0
 internal StructureBspBackgroundSoundPaletteBlockBase(BinaryReader binaryReader)
 {
     this.name                   = binaryReader.ReadString32();
     this.backgroundSound        = binaryReader.ReadTagReference();
     this.insideClusterSound     = binaryReader.ReadTagReference();
     this.invalidName_           = binaryReader.ReadBytes(20);
     this.cutoffDistance         = binaryReader.ReadSingle();
     this.scaleFlags             = (ScaleFlags)binaryReader.ReadInt32();
     this.interiorScale          = binaryReader.ReadSingle();
     this.portalScale            = binaryReader.ReadSingle();
     this.exteriorScale          = binaryReader.ReadSingle();
     this.interpolationSpeed1Sec = binaryReader.ReadSingle();
     this.invalidName_0          = binaryReader.ReadBytes(8);
 }
Example #5
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.ContrailFlags             = ((Flags)(binaryReader.ReadInt16()));
     this.ContrailScaleFlags        = ((ScaleFlags)(binaryReader.ReadInt16()));
     this.PointGenerationRate       = binaryReader.ReadSingle();
     this.PointVelocity             = binaryReader.ReadRange();
     this.PointVelocityConeAngle    = binaryReader.ReadSingle();
     this.InheritedVelocityFraction = binaryReader.ReadSingle();
     this.RenderType                = ((RenderTypeEnum)(binaryReader.ReadInt16()));
     this.fieldpad                  = binaryReader.ReadBytes(2);
     this.TextureRepeatsU           = binaryReader.ReadSingle();
     this.TextureRepeatsV           = binaryReader.ReadSingle();
     this.TextureAnimationU         = binaryReader.ReadSingle();
     this.TextureAnimationV         = binaryReader.ReadSingle();
     this.AnimationRate             = binaryReader.ReadSingle();
     this.Bitmap                    = binaryReader.ReadTagReference();
     this.FirstSequenceIndex        = binaryReader.ReadInt16();
     this.SequenceCount             = binaryReader.ReadInt16();
     this.fieldpad0                 = binaryReader.ReadBytes(40);
     this.ContrailShaderFlags       = ((ShaderFlags)(binaryReader.ReadInt16()));
     this.FramebufferBlendFunction  = ((FramebufferBlendFunctionEnum)(binaryReader.ReadInt16()));
     this.FramebufferFadeMode       = ((FramebufferFadeModeEnum)(binaryReader.ReadInt16()));
     this.ContrailMapFlags          = ((MapFlags)(binaryReader.ReadInt16()));
     this.fieldpad1                 = binaryReader.ReadBytes(28);
     this.Bitmap0                   = binaryReader.ReadTagReference();
     this.Anchor                    = ((AnchorEnum)(binaryReader.ReadInt16()));
     this.ContrailContrailFlags0    = ((ContrailFlags0)(binaryReader.ReadInt16()));
     this.fieldpad2                 = binaryReader.ReadBytes(2);
     this.UanimationFunction        = ((UanimationFunctionEnum)(binaryReader.ReadInt16()));
     this.UanimationPeriod          = binaryReader.ReadSingle();
     this.UanimationPhase           = binaryReader.ReadSingle();
     this.UanimationScale           = binaryReader.ReadSingle();
     this.fieldpad3                 = binaryReader.ReadBytes(2);
     this.VanimationFunction        = ((VanimationFunctionEnum)(binaryReader.ReadInt16()));
     this.VanimationPeriod          = binaryReader.ReadSingle();
     this.VanimationPhase           = binaryReader.ReadSingle();
     this.VanimationScale           = binaryReader.ReadSingle();
     this.fieldpad4                 = binaryReader.ReadBytes(2);
     this.RotationanimationFunction = ((RotationanimationFunctionEnum)(binaryReader.ReadInt16()));
     this.RotationanimationPeriod   = binaryReader.ReadSingle();
     this.RotationanimationPhase    = binaryReader.ReadSingle();
     this.RotationanimationScale    = binaryReader.ReadSingle();
     this.RotationanimationCenter   = binaryReader.ReadVector2();
     this.fieldpad5                 = binaryReader.ReadBytes(4);
     this.ZspriteRadiusScale        = binaryReader.ReadSingle();
     this.fieldpad6                 = binaryReader.ReadBytes(20);
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(64));
     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.Name               = binaryReader.ReadString32();
     this.BackgroundSound    = binaryReader.ReadTagReference();
     this.InsideClusterSound = binaryReader.ReadTagReference();
     this.fieldpad           = binaryReader.ReadBytes(20);
     this.CutoffDistance     = binaryReader.ReadSingle();
     this.StructureBspBackgroundSoundPaletteScaleFlags = ((ScaleFlags)(binaryReader.ReadInt32()));
     this.InteriorScale      = binaryReader.ReadSingle();
     this.PortalScale        = binaryReader.ReadSingle();
     this.ExteriorScale      = binaryReader.ReadSingle();
     this.InterpolationSpeed = binaryReader.ReadSingle();
     this.fieldpad0          = binaryReader.ReadBytes(8);
     return(pointerQueue);
 }
 public StructureBspBackgroundSoundPaletteBlock(BinaryReader binaryReader)
 {
     this.name = binaryReader.ReadString32();
     this.backgroundSound = binaryReader.ReadTagReference();
     this.insideClusterSoundPlayOnlyWhenPlayerIsInsideCluster = binaryReader.ReadTagReference();
     this.padding = binaryReader.ReadBytes(20);
     this.cutoffDistance = binaryReader.ReadSingle();
     this.scaleFlags = (ScaleFlags)binaryReader.ReadInt32();
     this.interiorScale = binaryReader.ReadSingle();
     this.portalScale = binaryReader.ReadSingle();
     this.exteriorScale = binaryReader.ReadSingle();
     this.interpolationSpeed1Sec = binaryReader.ReadSingle();
     this.padding0 = binaryReader.ReadBytes(8);
 }