Пример #1
0
 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.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.Name         = binaryReader.ReadString32();
     this.EMPTYSTRING  = binaryReader.ReadShortBlockIndex1();
     this.EMPTYSTRING0 = binaryReader.ReadShortBlockIndex2();
     return(pointerQueue);
 }
Пример #4
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.ShapeType       = ((ShapeTypeEnum)(binaryReader.ReadInt16()));
     this.Shape           = binaryReader.ReadShortBlockIndex2();
     this.CollisionFilter = 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.AreaType = ((AreaTypeEnum)(binaryReader.ReadInt16()));
     this.fieldpad = binaryReader.ReadBytes(2);
     this.Zone     = binaryReader.ReadShortBlockIndex1();
     this.Area     = binaryReader.ReadShortBlockIndex2();
     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.Index = binaryReader.ReadShortBlockIndex2();
     this.PhysicsModelConstraintEdgeConstraintFlags = ((Flags)(binaryReader.ReadInt32()));
     this.Friction = binaryReader.ReadSingle();
     return(pointerQueue);
 }
Пример #7
0
 internal ModelTargetBlockBase(BinaryReader binaryReader)
 {
     this.markerName         = binaryReader.ReadStringID();
     this.size               = binaryReader.ReadSingle();
     this.coneAngle          = binaryReader.ReadSingle();
     this.damageSection      = binaryReader.ReadShortBlockIndex2();
     this.variant            = binaryReader.ReadShortBlockIndex1();
     this.targetingRelevance = binaryReader.ReadSingle();
     this.lockOnData         = new ModelTargetLockOnDataStructBlock(binaryReader);
 }
 internal ModelMaterialBlockBase(BinaryReader binaryReader)
 {
     this.materialName       = binaryReader.ReadStringID();
     this.materialType       = (MaterialType)binaryReader.ReadInt16();
     this.damageSection      = binaryReader.ReadShortBlockIndex2();
     this.invalidName_       = binaryReader.ReadBytes(2);
     this.invalidName_0      = binaryReader.ReadBytes(2);
     this.globalMaterialName = binaryReader.ReadStringID();
     this.invalidName_1      = binaryReader.ReadBytes(4);
 }
 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.MarkerName         = binaryReader.ReadStringID();
     this.Size               = binaryReader.ReadSingle();
     this.ConeAngle          = binaryReader.ReadSingle();
     this.DamageSection      = binaryReader.ReadShortBlockIndex2();
     this.Variant            = binaryReader.ReadShortBlockIndex1();
     this.TargetingRelevance = binaryReader.ReadSingle();
     pointerQueue            = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.LockonData.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.MaterialName       = binaryReader.ReadStringID();
     this.MaterialType       = ((MaterialTypeEnum)(binaryReader.ReadInt16()));
     this.DamageSection      = binaryReader.ReadShortBlockIndex2();
     this.fieldpad           = binaryReader.ReadBytes(2);
     this.fieldpad0          = binaryReader.ReadBytes(2);
     this.GlobalMaterialName = binaryReader.ReadStringID();
     this.fieldpad1          = 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));
     this.GlobalDamageInfoFlags      = ((Flags)(binaryReader.ReadInt32()));
     this.GlobalIndirectMaterialName = binaryReader.ReadStringID();
     this.IndirectDamageSection      = binaryReader.ReadShortBlockIndex2();
     this.fieldpad  = binaryReader.ReadBytes(2);
     this.fieldpad0 = binaryReader.ReadBytes(4);
     this.CollisionDamageReportingType = ((CollisionDamageReportingTypeEnum)(binaryReader.ReadByte()));
     this.ResponseDamageReportingType  = ((ResponseDamageReportingTypeEnum)(binaryReader.ReadByte()));
     this.fieldpad1         = binaryReader.ReadBytes(2);
     this.fieldpad2         = binaryReader.ReadBytes(20);
     this.MaximumVitality   = binaryReader.ReadSingle();
     this.MinimumStunDamage = binaryReader.ReadSingle();
     this.StunTime          = binaryReader.ReadSingle();
     this.RechargeTime      = binaryReader.ReadSingle();
     this.RechargeFraction  = binaryReader.ReadSingle();
     this.fieldpad3         = binaryReader.ReadBytes(64);
     this.ShieldDamagedFirstPersonShader = binaryReader.ReadTagReference();
     this.ShieldDamagedShader            = binaryReader.ReadTagReference();
     this.MaximumShieldVitality          = binaryReader.ReadSingle();
     this.GlobalShieldMaterialName       = binaryReader.ReadStringID();
     this.MinimumStunDamage0             = binaryReader.ReadSingle();
     this.StunTime0              = binaryReader.ReadSingle();
     this.RechargeTime0          = binaryReader.ReadSingle();
     this.ShieldDamagedThreshold = binaryReader.ReadSingle();
     this.ShieldDamagedEffect    = binaryReader.ReadTagReference();
     this.ShieldDepletedEffect   = binaryReader.ReadTagReference();
     this.ShieldRechargingEffect = binaryReader.ReadTagReference();
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(56));
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(16));
     this.fieldpad4 = binaryReader.ReadBytes(2);
     this.fieldpad5 = binaryReader.ReadBytes(2);
     this.fieldpad6 = binaryReader.ReadBytes(4);
     this.fieldpad7 = binaryReader.ReadBytes(4);
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(20));
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(20));
     this.OvershieldFirstPersonShader = binaryReader.ReadTagReference();
     this.OvershieldShader            = binaryReader.ReadTagReference();
     return(pointerQueue);
 }
Пример #12
0
 internal GlobalDamageInfoBlockBase(BinaryReader binaryReader)
 {
     this.flags = (Flags)binaryReader.ReadInt32();
     this.globalIndirectMaterialName = binaryReader.ReadStringID();
     this.indirectDamageSection      = binaryReader.ReadShortBlockIndex2();
     this.invalidName_  = binaryReader.ReadBytes(2);
     this.invalidName_0 = binaryReader.ReadBytes(4);
     this.collisionDamageReportingType = (CollisionDamageReportingType)binaryReader.ReadByte();
     this.responseDamageReportingType  = (ResponseDamageReportingType)binaryReader.ReadByte();
     this.invalidName_1                  = binaryReader.ReadBytes(2);
     this.invalidName_2                  = binaryReader.ReadBytes(20);
     this.maximumVitality                = binaryReader.ReadSingle();
     this.minimumStunDamage              = binaryReader.ReadSingle();
     this.stunTimeSeconds                = binaryReader.ReadSingle();
     this.rechargeTimeSeconds            = binaryReader.ReadSingle();
     this.rechargeFraction               = binaryReader.ReadSingle();
     this.invalidName_3                  = binaryReader.ReadBytes(64);
     this.shieldDamagedFirstPersonShader = binaryReader.ReadTagReference();
     this.shieldDamagedShader            = binaryReader.ReadTagReference();
     this.maximumShieldVitality          = binaryReader.ReadSingle();
     this.globalShieldMaterialName       = binaryReader.ReadStringID();
     this.minimumStunDamage0             = binaryReader.ReadSingle();
     this.stunTimeSeconds0               = binaryReader.ReadSingle();
     this.rechargeTimeSeconds0           = binaryReader.ReadSingle();
     this.shieldDamagedThreshold         = binaryReader.ReadSingle();
     this.shieldDamagedEffect            = binaryReader.ReadTagReference();
     this.shieldDepletedEffect           = binaryReader.ReadTagReference();
     this.shieldRechargingEffect         = binaryReader.ReadTagReference();
     this.damageSections                 = ReadGlobalDamageSectionBlockArray(binaryReader);
     this.nodes                       = ReadGlobalDamageNodesBlockArray(binaryReader);
     this.invalidName_4               = binaryReader.ReadBytes(2);
     this.invalidName_5               = binaryReader.ReadBytes(2);
     this.invalidName_6               = binaryReader.ReadBytes(4);
     this.invalidName_7               = binaryReader.ReadBytes(4);
     this.damageSeats                 = ReadDamageSeatInfoBlockArray(binaryReader);
     this.damageConstraints           = ReadDamageConstraintInfoBlockArray(binaryReader);
     this.overshieldFirstPersonShader = binaryReader.ReadTagReference();
     this.overshieldShader            = binaryReader.ReadTagReference();
 }
 internal ScenarioObjectNamesBlockBase(BinaryReader binaryReader)
 {
     this.name         = binaryReader.ReadString32();
     this.eMPTYSTRING  = binaryReader.ReadShortBlockIndex1();
     this.eMPTYSTRING0 = binaryReader.ReadShortBlockIndex2();
 }
Пример #14
0
 public static void Write(this BinaryWriter binaryWriter, ShortBlockIndex2 value)
 {
     binaryWriter.Write((short)value);
 }
 internal ChildShapesStorage(BinaryReader binaryReader)
 {
     this.shapeType       = (ShapeType)binaryReader.ReadInt16();
     this.shape           = binaryReader.ReadShortBlockIndex2();
     this.collisionFilter = binaryReader.ReadInt32();
 }