internal ScenarioObjectIdStructBlockBase(BinaryReader binaryReader) { this.uniqueID = binaryReader.ReadInt32(); this.originBSPIndex = binaryReader.ReadShortBlockIndex1(); this.type = (Type)binaryReader.ReadByte(); this.source = (Source)binaryReader.ReadByte(); }
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)); pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.SectionInfo.ReadFields(binaryReader))); pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.GeometryBlockInfo.ReadFields(binaryReader))); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(68)); this.BoundsX = binaryReader.ReadRange(); this.BoundsY = binaryReader.ReadRange(); this.BoundsZ = binaryReader.ReadRange(); this.ScenarioSkyIndex = binaryReader.ReadByte(); this.MediaIndex = binaryReader.ReadByte(); this.ScenarioVisibleSkyIndex = binaryReader.ReadByte(); this.ScenarioAtmosphericFogIndex = binaryReader.ReadByte(); this.PlanarFogDesignator = binaryReader.ReadByte(); this.VisibleFogPlaneIndex = binaryReader.ReadByte(); this.BackgroundSound = binaryReader.ReadShortBlockIndex1(); this.SoundEnvironment = binaryReader.ReadShortBlockIndex1(); this.Weather = binaryReader.ReadShortBlockIndex1(); this.TransitionStructureBSP = binaryReader.ReadInt16(); this.fieldpad = binaryReader.ReadBytes(2); this.fieldpad0 = binaryReader.ReadBytes(4); this.StructureBspClusterFlags = ((Flags)(binaryReader.ReadInt16())); this.fieldpad1 = binaryReader.ReadBytes(2); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(8)); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(2)); this.ChecksumFromStructure = binaryReader.ReadInt32(); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(2)); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(2)); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(1)); return(pointerQueue); }
internal FlockDefinitionBlockBase(BinaryReader binaryReader) { this.bsp = binaryReader.ReadShortBlockIndex1(); this.invalidName_ = binaryReader.ReadBytes(2); this.boundingVolume = binaryReader.ReadShortBlockIndex1(); this.flags = (Flags)binaryReader.ReadInt16(); this.ecologyMarginWus = binaryReader.ReadSingle(); this.sources = ReadFlockSourceBlockArray(binaryReader); this.sinks = ReadFlockSinkBlockArray(binaryReader); this.productionFrequencyBoidsSec = binaryReader.ReadSingle(); this.scale = binaryReader.ReadRange(); this.creature = binaryReader.ReadTagReference(); this.boidCount = binaryReader.ReadInt32(); this.neighborhoodRadiusWorldUnits = binaryReader.ReadSingle(); this.avoidanceRadiusWorldUnits = binaryReader.ReadSingle(); this.forwardScale01 = binaryReader.ReadSingle(); this.alignmentScale01 = binaryReader.ReadSingle(); this.avoidanceScale01 = binaryReader.ReadSingle(); this.levelingForceScale01 = binaryReader.ReadSingle(); this.sinkScale01 = binaryReader.ReadSingle(); this.perceptionAngleDegrees = binaryReader.ReadSingle(); this.averageThrottle01 = binaryReader.ReadSingle(); this.maximumThrottle01 = binaryReader.ReadSingle(); this.positionScale01 = binaryReader.ReadSingle(); this.positionMinRadiusWus = binaryReader.ReadSingle(); this.positionMaxRadiusWus = binaryReader.ReadSingle(); this.movementWeightThreshold = binaryReader.ReadSingle(); this.dangerRadiusWus = binaryReader.ReadSingle(); this.dangerScale = binaryReader.ReadSingle(); this.randomOffsetScale01 = binaryReader.ReadSingle(); this.randomOffsetPeriodSeconds = binaryReader.ReadRange(); this.flockName = binaryReader.ReadStringID(); }
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 = binaryReader.ReadShortBlockIndex1(); this.fieldpad = binaryReader.ReadBytes(2); return(pointerQueue); }
internal ScenarioEquipmentBlockBase(BinaryReader binaryReader) { this.type = binaryReader.ReadShortBlockIndex1(); this.name = binaryReader.ReadShortBlockIndex1(); this.objectData = new ScenarioObjectDatumStructBlock(binaryReader); this.equipmentData = new ScenarioEquipmentDatumStructBlock(binaryReader); }
internal ZoneSetBlockBase(BinaryReader binaryReader) { this.areaType = (AreaType)binaryReader.ReadInt16(); this.invalidName_ = binaryReader.ReadBytes(2); this.zone = binaryReader.ReadShortBlockIndex1(); this.area = binaryReader.ReadShortBlockIndex2(); }
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.SquadsFlags = ((Flags)(binaryReader.ReadInt32())); this.Team = ((TeamEnum)(binaryReader.ReadInt16())); this.Parent = binaryReader.ReadShortBlockIndex1(); this.SquadDelayTime = binaryReader.ReadSingle(); this.NormalDiffCount = binaryReader.ReadInt16(); this.InsaneDiffCount = binaryReader.ReadInt16(); this.MajorUpgrade = ((MajorUpgradeEnum)(binaryReader.ReadInt16())); this.fieldpad = binaryReader.ReadBytes(2); this.VehicleType = binaryReader.ReadShortBlockIndex1(); this.CharacterType = binaryReader.ReadShortBlockIndex1(); this.InitialZone = binaryReader.ReadShortBlockIndex1(); this.fieldpad0 = binaryReader.ReadBytes(2); this.InitialWeapon = binaryReader.ReadShortBlockIndex1(); this.InitialSecondaryWeapon = binaryReader.ReadShortBlockIndex1(); this.GrenadeType = ((GrenadeTypeEnum)(binaryReader.ReadInt16())); this.InitialOrder = binaryReader.ReadShortBlockIndex1(); this.VehicleVariant = binaryReader.ReadStringID(); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(100)); this.PlacementScript = binaryReader.ReadString32(); this.fieldskip = binaryReader.ReadBytes(2); this.fieldpad1 = binaryReader.ReadBytes(2); 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.ScenarioFunctionFlags = ((Flags)(binaryReader.ReadInt32())); this.Name = binaryReader.ReadString32(); this.Period = binaryReader.ReadSingle(); this.ScalePeriodBy = binaryReader.ReadShortBlockIndex1(); this.Function = ((FunctionEnum)(binaryReader.ReadInt16())); this.ScaleFunctionBy = binaryReader.ReadShortBlockIndex1(); this.WobbleFunction = ((WobbleFunctionEnum)(binaryReader.ReadInt16())); this.WobblePeriod = binaryReader.ReadSingle(); this.WobbleMagnitude = binaryReader.ReadSingle(); this.SquareWaveThreshold = binaryReader.ReadSingle(); this.StepCount = binaryReader.ReadInt16(); this.MapTo = ((MapToEnum)(binaryReader.ReadInt16())); this.SawtoothCount = binaryReader.ReadInt16(); this.fieldpad = binaryReader.ReadBytes(2); this.ScaleResultBy = binaryReader.ReadShortBlockIndex1(); this.BoundsMode = ((BoundsModeEnum)(binaryReader.ReadInt16())); this.Bounds = binaryReader.ReadVector2(); this.fieldpad0 = binaryReader.ReadBytes(4); this.fieldpad1 = binaryReader.ReadBytes(2); this.TurnOffWith = binaryReader.ReadShortBlockIndex1(); this.fieldpad2 = binaryReader.ReadBytes(16); this.fieldpad3 = binaryReader.ReadBytes(16); return(pointerQueue); }
internal StructureCollisionMaterialsBlockBase(BinaryReader binaryReader) { this.oldShader = binaryReader.ReadTagReference(); this.invalidName_ = binaryReader.ReadBytes(2); this.conveyorSurfaceIndex = binaryReader.ReadShortBlockIndex1(); this.newShader = binaryReader.ReadTagReference(); }
internal ScenarioDecalsBlockBase(BinaryReader binaryReader) { this.decalType = binaryReader.ReadShortBlockIndex1(); this.yaw127127 = binaryReader.ReadByte(); this.pitch127127 = binaryReader.ReadByte(); this.position = binaryReader.ReadVector3(); }
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.Node = binaryReader.ReadShortBlockIndex1(); this.Region = binaryReader.ReadShortBlockIndex1(); this.Permutattion = binaryReader.ReadShortBlockIndex2(); this.fieldpad = binaryReader.ReadBytes(2); this.BoudingSphereOffset = binaryReader.ReadVector3(); this.BoundingSphereRadius = binaryReader.ReadSingle(); this.RigidBodiesFlags = ((Flags)(binaryReader.ReadInt16())); this.MotionType = ((MotionTypeEnum)(binaryReader.ReadInt16())); this.NoPhantomPowerAlt = binaryReader.ReadShortBlockIndex1(); this.Size = ((SizeEnum)(binaryReader.ReadInt16())); this.InertiaTensorScale = binaryReader.ReadSingle(); this.LinearDamping = binaryReader.ReadSingle(); this.AngularDamping = binaryReader.ReadSingle(); this.CenterOffMassOffset = binaryReader.ReadVector3(); this.ShapeType = ((ShapeTypeEnum)(binaryReader.ReadInt16())); this.Shape = binaryReader.ReadShortBlockIndex2(); this.Mass = binaryReader.ReadSingle(); this.CenterOfMass = binaryReader.ReadVector3(); this.fieldskip = binaryReader.ReadBytes(4); this.IntertiaTensorX = binaryReader.ReadVector3(); this.fieldskip0 = binaryReader.ReadBytes(4); this.IntertiaTensorY = binaryReader.ReadVector3(); this.fieldskip1 = binaryReader.ReadBytes(4); this.IntertiaTensorZ = binaryReader.ReadVector3(); this.fieldskip2 = binaryReader.ReadBytes(4); this.BoundingSpherePad = binaryReader.ReadSingle(); this.fieldpad0 = binaryReader.ReadBytes(12); return(pointerQueue); }
internal UserHintJumpBlockBase(BinaryReader binaryReader) { this.flags = (Flags)binaryReader.ReadInt16(); this.geometryIndex = binaryReader.ReadShortBlockIndex1(); this.forceJumpHeight = (ForceJumpHeight)binaryReader.ReadInt16(); this.controlFlags = (ControlFlags)binaryReader.ReadInt16(); }
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.GlobalGeometryPartNewFlags = ((Flags)(binaryReader.ReadInt16())); this.Material = binaryReader.ReadShortBlockIndex1(); this.StripStartIndex = binaryReader.ReadInt16(); this.StripLength = binaryReader.ReadInt16(); this.FirstSubpartIndex = binaryReader.ReadInt16(); this.SubpartCount = binaryReader.ReadInt16(); this.MaxNodesVertex = binaryReader.ReadByte(); this.ContributingCompoundNodeCount = binaryReader.ReadByte(); this.Position = binaryReader.ReadVector3(); int i; for (i = 0; (i < 4); i = (i + 1)) { this.NodeIndices00[i] = new NodeIndicesBlock(); pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.NodeIndices00[i].ReadFields(binaryReader))); } for (i = 0; (i < 3); i = (i + 1)) { this.NodeWeights00[i] = new NodeWeightsBlock(); pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.NodeWeights00[i].ReadFields(binaryReader))); } this.LodMipmapMagicNumber = binaryReader.ReadSingle(); this.fieldskip = binaryReader.ReadBytes(24); return(pointerQueue); }
internal StructureBspClusterBlockBase(BinaryReader binaryReader) { this.sectionInfo = new GlobalGeometrySectionInfoStructBlock(binaryReader); this.geometryBlockInfo = new GlobalGeometryBlockInfoStructBlock(binaryReader); this.clusterData = ReadStructureBspClusterDataBlockNewArray(binaryReader); this.boundsX = binaryReader.ReadRange(); this.boundsY = binaryReader.ReadRange(); this.boundsZ = binaryReader.ReadRange(); this.scenarioSkyIndex = binaryReader.ReadByte(); this.mediaIndex = binaryReader.ReadByte(); this.scenarioVisibleSkyIndex = binaryReader.ReadByte(); this.scenarioAtmosphericFogIndex = binaryReader.ReadByte(); this.planarFogDesignator = binaryReader.ReadByte(); this.visibleFogPlaneIndex = binaryReader.ReadByte(); this.backgroundSound = binaryReader.ReadShortBlockIndex1(); this.soundEnvironment = binaryReader.ReadShortBlockIndex1(); this.weather = binaryReader.ReadShortBlockIndex1(); this.transitionStructureBSP = binaryReader.ReadInt16(); this.invalidName_ = binaryReader.ReadBytes(2); this.invalidName_0 = binaryReader.ReadBytes(4); this.flags = (Flags)binaryReader.ReadInt16(); this.invalidName_1 = binaryReader.ReadBytes(2); this.predictedResources = ReadPredictedResourceBlockArray(binaryReader); this.portals = ReadStructureBspClusterPortalIndexBlockArray(binaryReader); this.checksumFromStructure = binaryReader.ReadInt32(); this.instancedGeometryIndices = ReadStructureBspClusterInstancedGeometryIndexBlockArray(binaryReader); this.indexReorderTable = ReadGlobalGeometrySectionStripIndexBlockArray(binaryReader); this.collisionMoppCode = ReadData(binaryReader); }
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.Bsp = binaryReader.ReadShortBlockIndex1(); this.fieldpad = binaryReader.ReadBytes(2); this.BoundingVolume = binaryReader.ReadShortBlockIndex1(); this.FlockDefinitionFlags = ((Flags)(binaryReader.ReadInt16())); this.EcologyMargin = binaryReader.ReadSingle(); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(28)); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(16)); this.ProductionFrequency = binaryReader.ReadSingle(); this.Scale = binaryReader.ReadRange(); this.Creature = binaryReader.ReadTagReference(); this.BoidCount = binaryReader.ReadInt32(); this.NeighborhoodRadius = binaryReader.ReadSingle(); this.AvoidanceRadius = binaryReader.ReadSingle(); this.ForwardScale = binaryReader.ReadSingle(); this.AlignmentScale = binaryReader.ReadSingle(); this.AvoidanceScale = binaryReader.ReadSingle(); this.LevelingForceScale = binaryReader.ReadSingle(); this.SinkScale = binaryReader.ReadSingle(); this.PerceptionAngle = binaryReader.ReadSingle(); this.AverageThrottle = binaryReader.ReadSingle(); this.MaximumThrottle = binaryReader.ReadSingle(); this.PositionScale = binaryReader.ReadSingle(); this.PositionMinRadius = binaryReader.ReadSingle(); this.PositionMaxRadius = binaryReader.ReadSingle(); this.MovementWeightThreshold = binaryReader.ReadSingle(); this.DangerRadius = binaryReader.ReadSingle(); this.DangerScale = binaryReader.ReadSingle(); this.RandomOffsetScale = binaryReader.ReadSingle(); this.RandomOffsetPeriod = binaryReader.ReadRange(); this.FlockName = binaryReader.ReadStringID(); return(pointerQueue); }
internal UnitSeatBlockBase(BinaryReader binaryReader) { this.flags = (Flags)binaryReader.ReadInt32(); this.label = binaryReader.ReadStringID(); this.markerName = binaryReader.ReadStringID(); this.entryMarkerSName = binaryReader.ReadStringID(); this.boardingGrenadeMarker = binaryReader.ReadStringID(); this.boardingGrenadeString = binaryReader.ReadStringID(); this.boardingMeleeString = binaryReader.ReadStringID(); this.pingScale = binaryReader.ReadSingle(); this.turnoverTimeSeconds = binaryReader.ReadSingle(); this.acceleration = new UnitSeatAccelerationStructBlock(binaryReader); this.aIScariness = binaryReader.ReadSingle(); this.aiSeatType = (AiSeatType)binaryReader.ReadInt16(); this.boardingSeat = binaryReader.ReadShortBlockIndex1(); this.listenerInterpolationFactor = binaryReader.ReadSingle(); this.yawRateBoundsDegreesPerSecond = binaryReader.ReadRange(); this.pitchRateBoundsDegreesPerSecond = binaryReader.ReadRange(); this.minSpeedReference = binaryReader.ReadSingle(); this.maxSpeedReference = binaryReader.ReadSingle(); this.speedExponent = binaryReader.ReadSingle(); this.unitCamera = new UnitCameraStructBlock(binaryReader); this.unitHudInterface = ReadUnitHudReferenceBlockArray(binaryReader); this.enterSeatString = binaryReader.ReadStringID(); this.yawMinimum = binaryReader.ReadSingle(); this.yawMaximum = binaryReader.ReadSingle(); this.builtInGunner = binaryReader.ReadTagReference(); this.entryRadius = binaryReader.ReadSingle(); this.entryMarkerConeAngle = binaryReader.ReadSingle(); this.entryMarkerFacingAngle = binaryReader.ReadSingle(); this.maximumRelativeVelocity = binaryReader.ReadSingle(); this.invisibleSeatRegion = binaryReader.ReadStringID(); this.runtimeInvisibleSeatRegionIndex = binaryReader.ReadInt32(); }
internal ScenarioFunctionBlockBase(BinaryReader binaryReader) { this.flags = (Flags)binaryReader.ReadInt32(); this.name = binaryReader.ReadString32(); this.periodSeconds = binaryReader.ReadSingle(); this.scalePeriodBy = binaryReader.ReadShortBlockIndex1(); this.function = (Function)binaryReader.ReadInt16(); this.scaleFunctionBy = binaryReader.ReadShortBlockIndex1(); this.wobbleFunction = (WobbleFunctionCurveUsedForWobble)binaryReader.ReadInt16(); this.wobblePeriodSeconds = binaryReader.ReadSingle(); this.wobbleMagnitudePercent = binaryReader.ReadSingle(); this.squareWaveThreshold = binaryReader.ReadSingle(); this.stepCount = binaryReader.ReadInt16(); this.mapTo = (MapTo)binaryReader.ReadInt16(); this.sawtoothCount = binaryReader.ReadInt16(); this.invalidName_ = binaryReader.ReadBytes(2); this.scaleResultBy = binaryReader.ReadShortBlockIndex1(); this.boundsMode = (BoundsModeControlsHowBoundsBelowAreUsed)binaryReader.ReadInt16(); this.bounds = binaryReader.ReadVector2(); this.invalidName_0 = binaryReader.ReadBytes(4); this.invalidName_1 = binaryReader.ReadBytes(2); this.turnOffWith = binaryReader.ReadShortBlockIndex1(); this.invalidName_2 = binaryReader.ReadBytes(16); this.invalidName_3 = binaryReader.ReadBytes(16); }
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.ReadStringID(); this.NodeListChecksum = binaryReader.ReadInt32(); this.ProductionChecksum = binaryReader.ReadInt32(); this.ImportChecksum = binaryReader.ReadInt32(); this.Type = ((TypeEnum)(binaryReader.ReadByte())); this.FrameInfoType = ((FrameInfoTypeEnum)(binaryReader.ReadByte())); this.BlendScreen = binaryReader.ReadByteBlockIndex1(); this.NodeCount = binaryReader.ReadByte(); this.FrameCount = binaryReader.ReadInt16(); this.AnimationPoolInternalFlags = ((InternalFlags)(binaryReader.ReadByte())); this.AnimationPoolProductionFlags = ((ProductionFlags)(binaryReader.ReadByte())); this.AnimationPoolPlaybackFlags = ((PlaybackFlags)(binaryReader.ReadInt16())); this.DesiredCompression = ((DesiredCompressionEnum)(binaryReader.ReadByte())); this.CurrentCompression = ((CurrentCompressionEnum)(binaryReader.ReadByte())); this.Weight = binaryReader.ReadSingle(); this.ParentGraphIndex = binaryReader.ReadInt32(); this.ParentGraphBlockIndex = binaryReader.ReadInt32(); this.ParentGraphBlockOffset = binaryReader.ReadInt32(); this.ParentGraphStartingPointIndex = binaryReader.ReadInt16(); this.LoopFrameIndex = binaryReader.ReadInt16(); this.ParentAnimation = binaryReader.ReadShortBlockIndex1(); this.NextAnimation = binaryReader.ReadShortBlockIndex1(); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(1)); pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.DataSizes.ReadFields(binaryReader))); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(4)); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(8)); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(4)); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(28)); 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.UserHintClimbFlags = ((Flags)(binaryReader.ReadInt16())); this.GeometryIndex = binaryReader.ReadShortBlockIndex1(); 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.ReadStringID(); this.Position = binaryReader.ReadVector3(); this.ReferenceFrame = binaryReader.ReadInt16(); this.fieldpad = binaryReader.ReadBytes(2); this.Facing = binaryReader.ReadVector2(); this.ActorStartingLocationsFlags = ((Flags)(binaryReader.ReadInt32())); this.CharacterType = binaryReader.ReadShortBlockIndex1(); this.InitialWeapon = binaryReader.ReadShortBlockIndex1(); this.InitialSecondaryWeapon = binaryReader.ReadShortBlockIndex1(); this.fieldpad0 = binaryReader.ReadBytes(2); this.VehicleType = binaryReader.ReadShortBlockIndex1(); this.SeatType = ((SeatTypeEnum)(binaryReader.ReadInt16())); this.GrenadeType = ((GrenadeTypeEnum)(binaryReader.ReadInt16())); this.SwarmCount = binaryReader.ReadInt16(); this.ActorVariantName = binaryReader.ReadStringID(); this.VehicleVariantName = binaryReader.ReadStringID(); this.InitialMovementDistance = binaryReader.ReadSingle(); this.EmitterVehicle = binaryReader.ReadShortBlockIndex1(); this.InitialMovementMode = ((InitialMovementModeEnum)(binaryReader.ReadInt16())); this.PlacementScript = binaryReader.ReadString32(); this.fieldskip = binaryReader.ReadBytes(2); this.fieldpad1 = binaryReader.ReadBytes(2); 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.ReadStringID(); this.Material = binaryReader.ReadShortBlockIndex1(); this.BoxesFlags = ((Flags)(binaryReader.ReadInt16())); this.RelativeMassScale = binaryReader.ReadSingle(); this.Friction = binaryReader.ReadSingle(); this.Restitution = binaryReader.ReadSingle(); this.Volume = binaryReader.ReadSingle(); this.Mass = binaryReader.ReadSingle(); this.fieldskip = binaryReader.ReadBytes(2); this.Phantom = binaryReader.ReadShortBlockIndex1(); this.fieldskip0 = binaryReader.ReadBytes(4); this.Size = binaryReader.ReadInt16(); this.Count = binaryReader.ReadInt16(); this.fieldskip1 = binaryReader.ReadBytes(4); this.Radius = binaryReader.ReadSingle(); this.HalfExtents = binaryReader.ReadVector3(); this.fieldskip2 = binaryReader.ReadBytes(4); this.fieldskip3 = binaryReader.ReadBytes(4); this.Size0 = binaryReader.ReadInt16(); this.Count0 = binaryReader.ReadInt16(); this.fieldskip4 = binaryReader.ReadBytes(4); this.fieldskip5 = binaryReader.ReadBytes(4); this.RotationI = binaryReader.ReadVector3(); this.fieldskip6 = binaryReader.ReadBytes(4); this.RotationJ = binaryReader.ReadVector3(); this.fieldskip7 = binaryReader.ReadBytes(4); this.RotationK = binaryReader.ReadVector3(); this.fieldskip8 = binaryReader.ReadBytes(4); this.Translation = binaryReader.ReadVector3(); this.fieldskip9 = binaryReader.ReadBytes(4); return(pointerQueue); }
internal SpheresBlockBase(BinaryReader binaryReader) { this.name = binaryReader.ReadStringID(); this.material = binaryReader.ReadShortBlockIndex1(); this.flags = (Flags)binaryReader.ReadInt16(); this.relativeMassScale = binaryReader.ReadSingle(); this.friction = binaryReader.ReadSingle(); this.restitution = binaryReader.ReadSingle(); this.volume = binaryReader.ReadSingle(); this.mass = binaryReader.ReadSingle(); this.invalidName_ = binaryReader.ReadBytes(2); this.phantom = binaryReader.ReadShortBlockIndex1(); this.invalidName_0 = binaryReader.ReadBytes(4); this.size = binaryReader.ReadInt16(); this.count = binaryReader.ReadInt16(); this.invalidName_1 = binaryReader.ReadBytes(4); this.radius = binaryReader.ReadSingle(); this.invalidName_2 = binaryReader.ReadBytes(4); this.size0 = binaryReader.ReadInt16(); this.count0 = binaryReader.ReadInt16(); this.invalidName_3 = binaryReader.ReadBytes(4); this.invalidName_4 = binaryReader.ReadBytes(4); this.rotationI = binaryReader.ReadVector3(); this.invalidName_5 = binaryReader.ReadBytes(4); this.rotationJ = binaryReader.ReadVector3(); this.invalidName_6 = binaryReader.ReadBytes(4); this.rotationK = binaryReader.ReadVector3(); this.invalidName_7 = binaryReader.ReadBytes(4); this.translation = binaryReader.ReadVector3(); this.invalidName_8 = binaryReader.ReadBytes(4); }
internal DecoratorCellCollectionBlockBase(BinaryReader binaryReader) { this.childIndices = new [] { new ChildIndices(binaryReader), new ChildIndices(binaryReader), new ChildIndices(binaryReader), new ChildIndices(binaryReader), new ChildIndices(binaryReader), new ChildIndices(binaryReader), new ChildIndices(binaryReader), new ChildIndices(binaryReader), }; this.cacheBlockIndex = binaryReader.ReadShortBlockIndex1(); this.groupCount = binaryReader.ReadInt16(); this.groupStartIndex = binaryReader.ReadInt32(); }
internal ScenarioSoundSceneryBlockBase(BinaryReader binaryReader) { this.type = binaryReader.ReadShortBlockIndex1(); this.name = binaryReader.ReadShortBlockIndex1(); this.objectData = new ScenarioObjectDatumStructBlock(binaryReader); this.soundScenery = new SoundSceneryDatumStructBlock(binaryReader); }
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.Effect = binaryReader.ReadShortBlockIndex1(); this.Frame = binaryReader.ReadInt16(); return(pointerQueue); }
internal SquadsBlockBase(BinaryReader binaryReader) { this.name = binaryReader.ReadString32(); this.flags = (Flags)binaryReader.ReadInt32(); this.team = (Team)binaryReader.ReadInt16(); this.parent = binaryReader.ReadShortBlockIndex1(); this.squadDelayTimeSeconds = binaryReader.ReadSingle(); this.normalDiffCount = binaryReader.ReadInt16(); this.insaneDiffCount = binaryReader.ReadInt16(); this.majorUpgrade = (MajorUpgrade)binaryReader.ReadInt16(); this.invalidName_ = binaryReader.ReadBytes(2); this.vehicleType = binaryReader.ReadShortBlockIndex1(); this.characterType = binaryReader.ReadShortBlockIndex1(); this.initialZone = binaryReader.ReadShortBlockIndex1(); this.invalidName_0 = binaryReader.ReadBytes(2); this.initialWeapon = binaryReader.ReadShortBlockIndex1(); this.initialSecondaryWeapon = binaryReader.ReadShortBlockIndex1(); this.grenadeType = (GrenadeType)binaryReader.ReadInt16(); this.initialOrder = binaryReader.ReadShortBlockIndex1(); this.vehicleVariant = binaryReader.ReadStringID(); this.startingLocations = ReadActorStartingLocationsBlockArray(binaryReader); this.placementScript = binaryReader.ReadString32(); this.invalidName_1 = binaryReader.ReadBytes(2); this.invalidName_2 = binaryReader.ReadBytes(2); }
internal ActorStartingLocationsBlockBase(BinaryReader binaryReader) { this.name = binaryReader.ReadStringID(); this.position = binaryReader.ReadVector3(); this.referenceFrame = binaryReader.ReadInt16(); this.invalidName_ = binaryReader.ReadBytes(2); this.facingYawPitchDegrees = binaryReader.ReadVector2(); this.flags = (Flags)binaryReader.ReadInt32(); this.characterType = binaryReader.ReadShortBlockIndex1(); this.initialWeapon = binaryReader.ReadShortBlockIndex1(); this.initialSecondaryWeapon = binaryReader.ReadShortBlockIndex1(); this.invalidName_0 = binaryReader.ReadBytes(2); this.vehicleType = binaryReader.ReadShortBlockIndex1(); this.seatType = (SeatType)binaryReader.ReadInt16(); this.grenadeType = (GrenadeType)binaryReader.ReadInt16(); this.swarmCount = binaryReader.ReadInt16(); this.actorVariantName = binaryReader.ReadStringID(); this.vehicleVariantName = binaryReader.ReadStringID(); this.initialMovementDistance = binaryReader.ReadSingle(); this.emitterVehicle = binaryReader.ReadShortBlockIndex1(); this.initialMovementMode = (InitialMovementMode)binaryReader.ReadInt16(); this.placementScript = binaryReader.ReadString32(); this.invalidName_1 = binaryReader.ReadBytes(2); this.invalidName_2 = binaryReader.ReadBytes(2); }
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.ReadStringID(); this.Material = binaryReader.ReadShortBlockIndex1(); this.MultiSpheresFlags = ((Flags)(binaryReader.ReadInt16())); this.RelativeMassScale = binaryReader.ReadSingle(); this.Friction = binaryReader.ReadSingle(); this.Restitution = binaryReader.ReadSingle(); this.Volume = binaryReader.ReadSingle(); this.Mass = binaryReader.ReadSingle(); this.fieldskip = binaryReader.ReadBytes(2); this.Phantom = binaryReader.ReadShortBlockIndex1(); this.fieldskip0 = binaryReader.ReadBytes(4); this.Size = binaryReader.ReadInt16(); this.Count = binaryReader.ReadInt16(); this.fieldskip1 = binaryReader.ReadBytes(4); this.NumSpheres = binaryReader.ReadInt32(); int i; for (i = 0; (i < 8); i = (i + 1)) { this.FourVectorsStorage00[i] = new FourVectorsStorageBlock(); pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.FourVectorsStorage00[i].ReadFields(binaryReader))); } return(pointerQueue); }
internal ScenarioLightBlockBase(BinaryReader binaryReader) { this.type = binaryReader.ReadShortBlockIndex1(); this.name = binaryReader.ReadShortBlockIndex1(); this.objectData = new ScenarioObjectDatumStructBlock(binaryReader); this.deviceData = new ScenarioDeviceStructBlock(binaryReader); this.lightData = new ScenarioLightStructBlock(binaryReader); }
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.EMPTYSTRING = binaryReader.ReadShortBlockIndex1(); this.EMPTYSTRING0 = binaryReader.ReadShortBlockIndex2(); return(pointerQueue); }