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); }
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); }
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); }
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); }
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); }
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); }
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.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.PowerGroup = binaryReader.ReadShortBlockIndex1(); this.PositionGroup = binaryReader.ReadShortBlockIndex1(); this.ScenarioDeviceStructFlags = ((Flags)(binaryReader.ReadInt32())); 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.Parent = binaryReader.ReadShortBlockIndex1(); this.InitialOrders = 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.Type = binaryReader.ReadShortBlockIndex1(); this.Name = binaryReader.ReadShortBlockIndex1(); pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.ObjectData.ReadFields(binaryReader))); 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.fieldpad = binaryReader.ReadBytes(2); this.ParentNode = binaryReader.ReadShortBlockIndex1(); this.NextSiblingNode = binaryReader.ReadShortBlockIndex1(); this.FirstChildNode = 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.NodesFlags = ((Flags)(binaryReader.ReadInt16())); this.Parent = binaryReader.ReadShortBlockIndex1(); this.Sibling = binaryReader.ReadShortBlockIndex1(); this.Child = 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.fieldpad = binaryReader.ReadBytes(4); this.NodeA = binaryReader.ReadShortBlockIndex1(); this.NodeB = binaryReader.ReadShortBlockIndex1(); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(12)); this.NodeAMaterial = binaryReader.ReadStringID(); this.NodeBMaterial = 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.Name = binaryReader.ReadShortBlockIndex1(); this.Parameters = binaryReader.ReadShortBlockIndex1(); this.EncodedPermutationData = binaryReader.ReadInt16(); this.FirstRuntimePermutationFlagIndex = binaryReader.ReadInt16(); this.FirstPermutation = binaryReader.ReadShortBlockIndex1(); this.PermutationCount = binaryReader.ReadInt16(); 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.ReadShortBlockIndex1(); this.EncodedSkipFraction = binaryReader.ReadInt16(); this.EncodedGain = binaryReader.ReadByte(); this.PermutationInfoIndex = binaryReader.ReadByte(); this.LanguageNeutralTime = binaryReader.ReadInt16(); this.SampleSize = binaryReader.ReadInt32(); this.FirstChunk = binaryReader.ReadShortBlockIndex1(); this.ChunkCount = binaryReader.ReadInt16(); 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.fieldpad = binaryReader.ReadBytes(8); this.UseThisObject = binaryReader.ReadShortBlockIndex1(); this.SetNewName = binaryReader.ReadShortBlockIndex1(); this.fieldpad0 = binaryReader.ReadBytes(12); this.fieldpad1 = binaryReader.ReadBytes(12); this.EncounterName = binaryReader.ReadString32(); this.fieldpad2 = binaryReader.ReadBytes(4); this.fieldpad3 = binaryReader.ReadBytes(12); 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.NextSiblingNodeIndex = binaryReader.ReadShortBlockIndex1(); this.FirstChildNodeIndex = binaryReader.ReadShortBlockIndex1(); this.ParentNodeIndex = binaryReader.ReadShortBlockIndex1(); this.AnimationGraphNodeModelFlags = ((ModelFlags)(binaryReader.ReadByte())); this.AnimationGraphNodeNodeJointFlags = ((NodeJointFlags)(binaryReader.ReadByte())); this.BaseVector = binaryReader.ReadVector3(); this.VectorRange = binaryReader.ReadSingle(); this.ZPos = 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.WeaponTriggersFlags = ((Flags)(binaryReader.ReadInt32())); this.Input = ((InputEnum)(binaryReader.ReadInt16())); this.Behavior = ((BehaviorEnum)(binaryReader.ReadInt16())); this.PrimaryBarrel = binaryReader.ReadShortBlockIndex1(); this.SecondaryBarrel = binaryReader.ReadShortBlockIndex1(); this.Prediction = ((PredictionEnum)(binaryReader.ReadInt16())); this.fieldpad = binaryReader.ReadBytes(2); pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.Autofire.ReadFields(binaryReader))); pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.Charging.ReadFields(binaryReader))); 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.Effect = binaryReader.ReadShortBlockIndex1(); this.Frame = binaryReader.ReadInt16(); 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.RuleType = ((RuleTypeEnum)(binaryReader.ReadInt16())); this.Squad = binaryReader.ReadShortBlockIndex1(); this.SquadGroup = binaryReader.ReadShortBlockIndex1(); this.A = binaryReader.ReadInt16(); this.X = binaryReader.ReadSingle(); this.TriggerVolume = binaryReader.ReadShortBlockIndex1(); this.fieldpad = binaryReader.ReadBytes(2); this.ExitConditionScript = binaryReader.ReadString32(); this.FieldShortInteger = binaryReader.ReadInt16(); this.fieldpad0 = binaryReader.ReadBytes(2); this.OrderCompletionConditionFlags = ((Flags)(binaryReader.ReadInt32())); 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.Type = binaryReader.ReadShortBlockIndex1(); this.fieldpad = 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.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); }
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.EffectFlags = ((Flags)(binaryReader.ReadInt32())); this.LoopStartEvent = binaryReader.ReadShortBlockIndex1(); this.fieldskip = binaryReader.ReadBytes(2); this.fieldpad = binaryReader.ReadBytes(4); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(4)); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(56)); this.LoopingSound = binaryReader.ReadTagReference(); this.Location = binaryReader.ReadShortBlockIndex1(); this.fieldskip0 = binaryReader.ReadBytes(2); this.AlwaysPlayDistance = binaryReader.ReadSingle(); this.NeverPlayDistance = 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.Name = binaryReader.ReadStringID(); this.ParentNode = binaryReader.ReadShortBlockIndex1(); this.FirstChildNode = binaryReader.ReadShortBlockIndex1(); this.NextSiblingNode = binaryReader.ReadShortBlockIndex1(); this.fieldpad = binaryReader.ReadBytes(2); this.DefaultTranslation = binaryReader.ReadVector3(); this.DefaultRotation = binaryReader.ReadQuaternion(); this.DefaultInverseScale = binaryReader.ReadSingle(); this.DefaultInverseForward = binaryReader.ReadVector3(); this.DefaultInverseLeft = binaryReader.ReadVector3(); this.DefaultInverseUp = binaryReader.ReadVector3(); this.DefaultInversePosition = binaryReader.ReadVector3(); 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.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.PitchRanges = binaryReader.ReadShortBlockIndex1(); this.MaximumPlayingCount = binaryReader.ReadInt16(); this.SuppressionTimeSeconds = binaryReader.ReadSingle(); this.fieldpad = binaryReader.ReadBytes(8); 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.Node = binaryReader.ReadShortBlockIndex1(); this.CollisionModelPathfindingSphereFlags = ((Flags)(binaryReader.ReadInt16())); this.Center = binaryReader.ReadVector3(); this.Radius = 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.AiConversationLineFlags = ((Flags)(binaryReader.ReadInt16())); this.Participant = binaryReader.ReadShortBlockIndex1(); this.Addressee = ((AddresseeEnum)(binaryReader.ReadInt16())); this.AddresseeParticipant = binaryReader.ReadShortBlockIndex1(); this.fieldpad = binaryReader.ReadBytes(4); this.LineDelayTime = binaryReader.ReadSingle(); this.fieldpad0 = binaryReader.ReadBytes(12); this.Variant1 = binaryReader.ReadTagReference(); this.Variant2 = binaryReader.ReadTagReference(); this.Variant3 = binaryReader.ReadTagReference(); this.Variant4 = binaryReader.ReadTagReference(); this.Variant5 = binaryReader.ReadTagReference(); this.Variant6 = binaryReader.ReadTagReference(); return(pointerQueue); }
public SquadsBlock(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.normalDiffCountInitialNumberOfActorsOnNormalDifficulty = binaryReader.ReadInt16(); this.insaneDiffCountInitialNumberOfActorsOnInsaneDifficultyHardDifficultyIsMidwayBetweenNormalAndInsane = binaryReader.ReadInt16(); this.majorUpgrade = (MajorUpgrade)binaryReader.ReadInt16(); this.padding = binaryReader.ReadBytes(2); this.vehicleType = binaryReader.ReadShortBlockIndex1(); this.characterType = binaryReader.ReadShortBlockIndex1(); this.initialZone = binaryReader.ReadShortBlockIndex1(); this.padding0 = binaryReader.ReadBytes(2); this.initialWeapon = binaryReader.ReadShortBlockIndex1(); this.initialSecondaryWeapon = binaryReader.ReadShortBlockIndex1(); this.grenadeType = (GrenadeType)binaryReader.ReadInt16(); this.initialOrder = binaryReader.ReadShortBlockIndex1(); this.vehicleVariant = binaryReader.ReadStringID(); { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(ActorStartingLocationsBlock)); this.startingLocations = new ActorStartingLocationsBlock[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.startingLocations[i] = new ActorStartingLocationsBlock(binaryReader); } } } this.placementScript = binaryReader.ReadString32(); this.skip1 = binaryReader.ReadBytes(2); this.padding2 = binaryReader.ReadBytes(2); }
public ScenarioBspSwitchTriggerVolumeBlock(BinaryReader binaryReader) { this.triggerVolume = binaryReader.ReadShortBlockIndex1(); this.source = binaryReader.ReadInt16(); this.destination = binaryReader.ReadInt16(); this.padding = binaryReader.ReadBytes(2); this.padding0 = binaryReader.ReadBytes(2); this.padding1 = binaryReader.ReadBytes(2); this.padding2 = binaryReader.ReadBytes(2); }
public ScenarioLightBlock(BinaryReader binaryReader) { this.type = binaryReader.ReadShortBlockIndex1(); this.name = binaryReader.ReadShortBlockIndex1(); this.objectData = new ScenarioObjectDatumStruct(binaryReader); this.deviceData = new ScenarioDeviceStruct(binaryReader); this.lightData = new ScenarioLightStruct(binaryReader); }
public DecoratorCellCollectionBlock(BinaryReader binaryReader) { this.childIndices = new ChildIndices[8]; for (int i = 0; i < 8; ++i) { this.childIndices[i] = new ChildIndices(binaryReader); } this.cacheBlockIndex = binaryReader.ReadShortBlockIndex1(); this.groupCount = binaryReader.ReadInt16(); this.groupStartIndex = binaryReader.ReadInt32(); }
public ScenarioBspSwitchTransitionVolumeBlock(BinaryReader binaryReader) { this.bSPIndexKey = binaryReader.ReadInt32(); this.triggerVolume = binaryReader.ReadShortBlockIndex1(); this.padding = binaryReader.ReadBytes(2); }
public ScenarioClusterAtmosphericFogPropertiesBlock(BinaryReader binaryReader) { this.type = binaryReader.ReadShortBlockIndex1(); this.padding = binaryReader.ReadBytes(2); }
public FlockDefinitionBlock(BinaryReader binaryReader) { this.bsp = binaryReader.ReadShortBlockIndex1(); this.padding = binaryReader.ReadBytes(2); this.boundingVolume = binaryReader.ReadShortBlockIndex1(); this.flags = (Flags)binaryReader.ReadInt16(); this.ecologyMarginWusDistanceFromEcologyBoundaryThatCreatureBeginsToBeRepulsed = binaryReader.ReadSingle(); { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(FlockSourceBlock)); this.sources = new FlockSourceBlock[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.sources[i] = new FlockSourceBlock(binaryReader); } } } { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(FlockSinkBlock)); this.sinks = new FlockSinkBlock[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.sinks[i] = new FlockSinkBlock(binaryReader); } } } this.productionFrequencyBoidsSecHowFrequentlyBoidsAreProducedAtOneOfTheSourcesLimitedByTheMaxBoidCount = binaryReader.ReadSingle(); this.scale = binaryReader.ReadRange(); this.creature = binaryReader.ReadTagReference(); this.boidCount = binaryReader.ReadInt32(); this.neighborhoodRadiusWorldUnitsDistanceWithinWhichOneBoidIsAffectedByAnother = binaryReader.ReadSingle(); this.avoidanceRadiusWorldUnitsDistanceThatABoidTriesToMaintainFromAnother = binaryReader.ReadSingle(); this.forwardScale01WeightGivenToBoidsDesireToFlyStraightAhead = binaryReader.ReadSingle(); this.alignmentScale01WeightGivenToBoidsDesireToAlignItselfWithNeighboringBoids = binaryReader.ReadSingle(); this.avoidanceScale01WeightGivenToBoidsDesireToAvoidCollisionsWithOtherBoidsWhenWithinTheAvoidanceRadius = binaryReader.ReadSingle(); this.levelingForceScale01WeightGivenToBoidsDesireToFlyLevel = binaryReader.ReadSingle(); this.sinkScale01WeightGivenToBoidsDesireToFlyTowardsItsSinks = binaryReader.ReadSingle(); this.perceptionAngleDegreesAngleFromForwardWithinWhichOneBoidCanPerceiveAndReactToAnother = binaryReader.ReadSingle(); this.averageThrottle01ThrottleAtWhichBoidsWillNaturallyFly = binaryReader.ReadSingle(); this.maximumThrottle01MaximumThrottleApplicable = binaryReader.ReadSingle(); this.positionScale01WeightGivenToBoidsDesireToBeNearFlockCenter = binaryReader.ReadSingle(); this.positionMinRadiusWusDistanceToFlockCenterBeyondWhichAnAttractingForceIsApplied = binaryReader.ReadSingle(); this.positionMaxRadiusWusDistanceToFlockCenterAtWhichTheMaximumAttractingForceIsApplied = binaryReader.ReadSingle(); this.movementWeightThresholdTheThresholdOfAccumulatedWeightOverWhichMovementOccurs = binaryReader.ReadSingle(); this.dangerRadiusWusDistanceWithinWhichBoidsWillAvoidADangerousObjectEGThePlayer = binaryReader.ReadSingle(); this.dangerScaleWeightGivenToBoidsDesireToAvoidDanger = binaryReader.ReadSingle(); this.randomOffsetScale01WeightGivenToBoidsRandomHeadingOffset = binaryReader.ReadSingle(); this.randomOffsetPeriodSeconds = binaryReader.ReadRange(); this.flockName = binaryReader.ReadStringID(); }
public AiConversationParticipantBlock(BinaryReader binaryReader) { this.padding = binaryReader.ReadBytes(8); this.useThisObjectIfAUnitWithThisNameExistsWeTryToPickThemToStartTheConversation = binaryReader.ReadShortBlockIndex1(); this.setNewNameOnceWePickAUnitWeNameItThis = binaryReader.ReadShortBlockIndex1(); this.padding0 = binaryReader.ReadBytes(12); this.padding1 = binaryReader.ReadBytes(12); this.encounterName = binaryReader.ReadString32(); this.padding2 = binaryReader.ReadBytes(4); this.padding3 = binaryReader.ReadBytes(12); }
public AiConversationLineBlock(BinaryReader binaryReader) { this.flags = (Flags)binaryReader.ReadInt16(); this.participant = binaryReader.ReadShortBlockIndex1(); this.addressee = (Addressee)binaryReader.ReadInt16(); this.addresseeParticipantThisFieldIsOnlyUsedIfTheAddresseeTypeIsParticipant = binaryReader.ReadShortBlockIndex1(); this.padding = binaryReader.ReadBytes(4); this.lineDelayTime = binaryReader.ReadSingle(); this.padding0 = binaryReader.ReadBytes(12); this.variant1 = binaryReader.ReadTagReference(); this.variant2 = binaryReader.ReadTagReference(); this.variant3 = binaryReader.ReadTagReference(); this.variant4 = binaryReader.ReadTagReference(); this.variant5 = binaryReader.ReadTagReference(); this.variant6 = binaryReader.ReadTagReference(); }
public UserHintJumpBlock(BinaryReader binaryReader) { this.flags = (Flags)binaryReader.ReadInt16(); this.geometryIndex = binaryReader.ReadShortBlockIndex1(); this.forceJumpHeight = (ForceJumpHeight)binaryReader.ReadInt16(); this.controlFlags = (ControlFlags)binaryReader.ReadInt16(); }
public UserHintClimbBlock(BinaryReader binaryReader) { this.flags = (Flags)binaryReader.ReadInt16(); this.geometryIndex = binaryReader.ReadShortBlockIndex1(); }
public TriggerReferences(BinaryReader binaryReader) { this.triggerFlags = (TriggerFlags)binaryReader.ReadInt32(); this.trigger = binaryReader.ReadShortBlockIndex1(); this.padding = binaryReader.ReadBytes(2); }
public ZoneBlock(BinaryReader binaryReader) { this.name = binaryReader.ReadString32(); this.flags = (Flags)binaryReader.ReadInt32(); this.manualBsp = binaryReader.ReadShortBlockIndex1(); this.padding = binaryReader.ReadBytes(2); { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(FiringPositionsBlock)); this.firingPositions = new FiringPositionsBlock[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.firingPositions[i] = new FiringPositionsBlock(binaryReader); } } } { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(AreasBlock)); this.areas = new AreasBlock[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.areas[i] = new AreasBlock(binaryReader); } } } }
public FiringPositionsBlock(BinaryReader binaryReader) { this.positionLocal = binaryReader.ReadVector3(); this.referenceFrame = binaryReader.ReadInt16(); this.flags = (Flags)binaryReader.ReadInt16(); this.area = binaryReader.ReadShortBlockIndex1(); this.clusterIndex = binaryReader.ReadInt16(); this.skip = binaryReader.ReadBytes(4); this.normal = binaryReader.ReadVector2(); }
public ScenarioClusterBackgroundSoundsBlock(BinaryReader binaryReader) { this.type = binaryReader.ReadShortBlockIndex1(); this.padding = binaryReader.ReadBytes(2); }
public CsPointSetBlock(BinaryReader binaryReader) { this.name = binaryReader.ReadString32(); { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(CsPointBlock)); this.points = new CsPointBlock[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.points[i] = new CsPointBlock(binaryReader); } } } this.bspIndex = binaryReader.ReadShortBlockIndex1(); this.manualReferenceFrame = binaryReader.ReadInt16(); this.flags = (Flags)binaryReader.ReadInt32(); }
public ScenarioClusterSoundEnvironmentsBlock(BinaryReader binaryReader) { this.type = binaryReader.ReadShortBlockIndex1(); this.padding = binaryReader.ReadBytes(2); }
public ScenarioStructureBspReferenceBlock(BinaryReader binaryReader) { this.padding = binaryReader.ReadBytes(16); this.structureBSP = binaryReader.ReadTagReference(); this.structureLightmap = binaryReader.ReadTagReference(); this.padding0 = binaryReader.ReadBytes(4); this.uNUSEDRadianceEstSearchDistance = binaryReader.ReadSingle(); this.padding1 = binaryReader.ReadBytes(4); this.uNUSEDLuminelsPerWorldUnit = binaryReader.ReadSingle(); this.uNUSEDOutputWhiteReference = binaryReader.ReadSingle(); this.padding2 = binaryReader.ReadBytes(8); this.flags = (Flags)binaryReader.ReadInt16(); this.padding3 = binaryReader.ReadBytes(2); this.defaultSky = binaryReader.ReadShortBlockIndex1(); this.padding4 = binaryReader.ReadBytes(2); }
public ScenarioCrateBlock(BinaryReader binaryReader) { this.type = binaryReader.ReadShortBlockIndex1(); this.name = binaryReader.ReadShortBlockIndex1(); this.objectData = new ScenarioObjectDatumStruct(binaryReader); this.paddingindexer = binaryReader.ReadBytes(4); this.permutationData = new ScenarioObjectPermutationStruct(binaryReader); }
public ScenarioKillTriggerVolumesBlock(BinaryReader binaryReader) { this.triggerVolume = binaryReader.ReadShortBlockIndex1(); }
public DecoratorGroupBlock(BinaryReader binaryReader) { this.decoratorSet = binaryReader.ReadByteBlockIndex1(); this.decoratorType = (DecoratorType)binaryReader.ReadByte(); this.shaderIndex = binaryReader.ReadByte(); this.compressedRadius = binaryReader.ReadByte(); this.cluster = binaryReader.ReadInt16(); this.cacheBlock = binaryReader.ReadShortBlockIndex1(); this.decoratorStartIndex = binaryReader.ReadInt16(); this.decoratorCount = binaryReader.ReadInt16(); this.vertexStartOffset = binaryReader.ReadInt16(); this.vertexCount = binaryReader.ReadInt16(); this.indexStartOffset = binaryReader.ReadInt16(); this.indexCount = binaryReader.ReadInt16(); this.compressedBoundingCenter = binaryReader.ReadInt32(); }
public SecondaryZoneSetBlock(BinaryReader binaryReader) { this.areaType = (AreaType)binaryReader.ReadInt16(); this.padding = binaryReader.ReadBytes(2); this.zone = binaryReader.ReadShortBlockIndex1(); this.area = binaryReader.ReadShortBlockIndex2(); }
public ScenarioCreatureBlock(BinaryReader binaryReader) { this.type = binaryReader.ReadShortBlockIndex1(); this.name = binaryReader.ReadShortBlockIndex1(); this.objectData = new ScenarioObjectDatumStruct(binaryReader); }
public OrderEndingBlock(BinaryReader binaryReader) { this.nextOrder = binaryReader.ReadShortBlockIndex1(); this.combinationRule = (CombinationRule)binaryReader.ReadInt16(); this.delayTime = binaryReader.ReadSingle(); this.dialogueTypeWhenThisEndingIsTriggeredLaunchADialogueEventOfTheGivenType = (DialogueTypeWhenThisEndingIsTriggeredLaunchADialogueEventOfTheGivenType)binaryReader.ReadInt16(); this.padding = binaryReader.ReadBytes(2); { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(TriggerReferences)); this.triggers = new TriggerReferences[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.triggers[i] = new TriggerReferences(binaryReader); } } } }
public ScenarioDecalsBlock(BinaryReader binaryReader) { this.decalType = binaryReader.ReadShortBlockIndex1(); this.yaw127127 = binaryReader.ReadByte(); this.pitch127127 = binaryReader.ReadByte(); this.position = binaryReader.ReadVector3(); }
public OrdersBlock(BinaryReader binaryReader) { this.name = binaryReader.ReadString32(); this.style = binaryReader.ReadShortBlockIndex1(); this.padding = binaryReader.ReadBytes(2); this.flags = (Flags)binaryReader.ReadInt32(); this.forceCombatStatus = (ForceCombatStatus)binaryReader.ReadInt16(); this.padding0 = binaryReader.ReadBytes(2); this.entryScript = binaryReader.ReadString32(); this.skip1 = binaryReader.ReadBytes(2); this.followSquad = binaryReader.ReadShortBlockIndex1(); this.followRadius = binaryReader.ReadSingle(); { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(ZoneSetBlock)); this.primaryAreaSet = new ZoneSetBlock[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.primaryAreaSet[i] = new ZoneSetBlock(binaryReader); } } } { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(SecondaryZoneSetBlock)); this.secondaryAreaSet = new SecondaryZoneSetBlock[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.secondaryAreaSet[i] = new SecondaryZoneSetBlock(binaryReader); } } } { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(SecondarySetTriggerBlock)); this.secondarySetTrigger = new SecondarySetTriggerBlock[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.secondarySetTrigger[i] = new SecondarySetTriggerBlock(binaryReader); } } } { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(SpecialMovementBlock)); this.specialMovement = new SpecialMovementBlock[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.specialMovement[i] = new SpecialMovementBlock(binaryReader); } } } { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(OrderEndingBlock)); this.orderEndings = new OrderEndingBlock[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.orderEndings[i] = new OrderEndingBlock(binaryReader); } } } }
public ScenarioTriggerVolumeBlock(BinaryReader binaryReader) { this.name = binaryReader.ReadStringID(); this.objectName = binaryReader.ReadShortBlockIndex1(); this.skip = binaryReader.ReadBytes(2); this.nodeName = binaryReader.ReadStringID(); this.eMPTYSTRING = new EMPTYSTRING[6]; for (int i = 0; i < 6; ++i) { this.eMPTYSTRING[i] = new EMPTYSTRING(binaryReader); } this.position = binaryReader.ReadVector3(); this.extents = binaryReader.ReadVector3(); this.padding0 = binaryReader.ReadBytes(4); this.killTriggerVolume = binaryReader.ReadShortBlockIndex1(); this.padding1 = binaryReader.ReadBytes(2); }
public OrderCompletionCondition(BinaryReader binaryReader) { this.ruleType = (RuleType)binaryReader.ReadInt16(); this.squad = binaryReader.ReadShortBlockIndex1(); this.squadGroup = binaryReader.ReadShortBlockIndex1(); this.a = binaryReader.ReadInt16(); this.x = binaryReader.ReadSingle(); this.triggerVolume = binaryReader.ReadShortBlockIndex1(); this.padding = binaryReader.ReadBytes(2); this.exitConditionScript = binaryReader.ReadString32(); this.invalidName_0 = binaryReader.ReadInt16(); this.padding1 = binaryReader.ReadBytes(2); this.flags = (Flags)binaryReader.ReadInt32(); }
public ActorStartingLocationsBlock(BinaryReader binaryReader) { this.name = binaryReader.ReadStringID(); this.position = binaryReader.ReadVector3(); this.referenceFrame = binaryReader.ReadInt16(); this.padding = 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.padding0 = binaryReader.ReadBytes(2); this.vehicleType = binaryReader.ReadShortBlockIndex1(); this.seatType = (SeatType)binaryReader.ReadInt16(); this.grenadeType = (GrenadeType)binaryReader.ReadInt16(); this.swarmCountNumberOfCreturesInSwarmIfASwarmIsSpawnedAtThisLocation = binaryReader.ReadInt16(); this.actorVariantName = binaryReader.ReadStringID(); this.vehicleVariantName = binaryReader.ReadStringID(); this.initialMovementDistanceBeforeDoingAnythingElseTheActorWillTravelTheGivenDistanceInItsForwardDirection = binaryReader.ReadSingle(); this.emitterVehicle = binaryReader.ReadShortBlockIndex1(); this.initialMovementMode = (InitialMovementMode)binaryReader.ReadInt16(); this.placementScript = binaryReader.ReadString32(); this.skip1 = binaryReader.ReadBytes(2); this.padding2 = binaryReader.ReadBytes(2); }
public SquadGroupsBlock(BinaryReader binaryReader) { this.name = binaryReader.ReadString32(); this.parent = binaryReader.ReadShortBlockIndex1(); this.initialOrders = binaryReader.ReadShortBlockIndex1(); }