public SecondaryZoneSetBlock(BinaryReader binaryReader) { this.areaType = (AreaType)binaryReader.ReadInt16(); this.padding = binaryReader.ReadBytes(2); this.zone = binaryReader.ReadShortBlockIndex1(); this.area = binaryReader.ReadShortBlockIndex2(); }
public ScenarioObjectNamesBlock(BinaryReader binaryReader) { this.name = binaryReader.ReadString32(); this.eMPTYSTRING = binaryReader.ReadShortBlockIndex1(); this.eMPTYSTRING0 = binaryReader.ReadShortBlockIndex2(); }
public ModelMaterialBlock(BinaryReader binaryReader) { this.materialName = binaryReader.ReadStringID(); this.materialType = (MaterialType)binaryReader.ReadInt16(); this.damageSection = binaryReader.ReadShortBlockIndex2(); this.padding = binaryReader.ReadBytes(2); this.padding0 = binaryReader.ReadBytes(2); this.globalMaterialName = binaryReader.ReadStringID(); this.padding1 = binaryReader.ReadBytes(4); }
public GlobalDamageInfoBlock(BinaryReader binaryReader) { this.flags = (Flags)binaryReader.ReadInt32(); this.globalIndirectMaterialNameAbsorbesAOEOrChildDamage = binaryReader.ReadStringID(); this.indirectDamageSectionAbsorbesAOEOrChildDamage = binaryReader.ReadShortBlockIndex2(); this.padding = binaryReader.ReadBytes(2); this.padding0 = binaryReader.ReadBytes(4); this.collisionDamageReportingType = (CollisionDamageReportingType)binaryReader.ReadByte(); this.responseDamageReportingType = (ResponseDamageReportingType)binaryReader.ReadByte(); this.padding1 = binaryReader.ReadBytes(2); this.padding2 = binaryReader.ReadBytes(20); this.maximumVitality = binaryReader.ReadSingle(); this.minimumStunDamageTheMinimumDamageRequiredToStunThisObjectsHealth = binaryReader.ReadSingle(); this.stunTimeSecondsTheLengthOfTimeTheHealthStayStunnedDoNotRechargeAfterTakingDamage = binaryReader.ReadSingle(); this.rechargeTimeSecondsTheLengthOfTimeItWouldTakeForTheShieldsToFullyRechargeAfterBeingCompletelyDepleted = binaryReader.ReadSingle(); this.rechargeFraction0DefaultsTo1ToWhatMaximumLevelTheBodyHealthWillBeAllowedToRecharge = binaryReader.ReadSingle(); this.padding3 = binaryReader.ReadBytes(64); this.shieldDamagedFirstPersonShader = binaryReader.ReadTagReference(); this.shieldDamagedShader = binaryReader.ReadTagReference(); this.maximumShieldVitalityTheDefaultInitialAndMaximumShieldVitalityOfThisObject = binaryReader.ReadSingle(); this.globalShieldMaterialName = binaryReader.ReadStringID(); this.minimumStunDamageTheMinimumDamageRequiredToStunThisObjectsShields = binaryReader.ReadSingle(); this.stunTimeSecondsTheLengthOfTimeTheShieldsStayStunnedDoNotRechargeAfterTakingDamage = binaryReader.ReadSingle(); this.rechargeTimeSecondsTheLengthOfTimeItWouldTakeForTheShieldsToFullyRechargeAfterBeingCompletelyDepleted0 = binaryReader.ReadSingle(); this.shieldDamagedThreshold = binaryReader.ReadSingle(); this.shieldDamagedEffect = binaryReader.ReadTagReference(); this.shieldDepletedEffect = binaryReader.ReadTagReference(); this.shieldRechargingEffect = binaryReader.ReadTagReference(); { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(GlobalDamageSectionBlock)); this.damageSections = new GlobalDamageSectionBlock[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.damageSections[i] = new GlobalDamageSectionBlock(binaryReader); } } } { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(GlobalDamageNodesBlock)); this.nodes = new GlobalDamageNodesBlock[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.nodes[i] = new GlobalDamageNodesBlock(binaryReader); } } } this.padding4 = binaryReader.ReadBytes(2); this.padding5 = binaryReader.ReadBytes(2); this.padding6 = binaryReader.ReadBytes(4); this.padding7 = binaryReader.ReadBytes(4); { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(DamageSeatInfoBlock)); this.damageSeats = new DamageSeatInfoBlock[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.damageSeats[i] = new DamageSeatInfoBlock(binaryReader); } } } { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(DamageConstraintInfoBlock)); this.damageConstraints = new DamageConstraintInfoBlock[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.damageConstraints[i] = new DamageConstraintInfoBlock(binaryReader); } } } this.overshieldFirstPersonShader = binaryReader.ReadTagReference(); this.overshieldShader = binaryReader.ReadTagReference(); }
public ModelTargetBlock(BinaryReader binaryReader) { this.markerNameMultipleMarkersBecomeMultipleSpheresOfTheSameRadius = binaryReader.ReadStringID(); this.sizeSphereRadius = binaryReader.ReadSingle(); this.coneAngleTheTargetIsOnlyVisibleWhenViewedWithinThisAngleOfTheMarkersXAxis = binaryReader.ReadSingle(); this.damageSectionTheTargetIsAssociatedWithThisDamageSection = binaryReader.ReadShortBlockIndex2(); this.variantTheTargetWillOnlyAppearWithThisVariant = binaryReader.ReadShortBlockIndex1(); this.targetingRelevanceHigherRelevancesTurnIntoStrongerMagnetisms = binaryReader.ReadSingle(); this.lockOnData = new ModelTargetLockOnDataStruct(binaryReader); }