Ejemplo n.º 1
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteVector4(bw, m_gravity);
     bw.WriteSByte(m_numWheels);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     s.WriteMatrix3(bw, m_chassisOrientation);
     bw.WriteSingle(m_torqueRollFactor);
     bw.WriteSingle(m_torquePitchFactor);
     bw.WriteSingle(m_torqueYawFactor);
     bw.WriteSingle(m_extraTorqueFactor);
     bw.WriteSingle(m_maxVelocityForPositionalFriction);
     bw.WriteSingle(m_chassisUnitInertiaYaw);
     bw.WriteSingle(m_chassisUnitInertiaRoll);
     bw.WriteSingle(m_chassisUnitInertiaPitch);
     bw.WriteSingle(m_frictionEqualizer);
     bw.WriteSingle(m_normalClippingAngleCos);
     bw.WriteSingle(m_maxFrictionSolverMassRatio);
     bw.WriteUInt32(0);
     s.WriteClassArray <hknpVehicleDataWheelComponentParams>(bw, m_wheelParams);
     s.WriteSByteArray(bw, m_numWheelsPerAxle);
     m_frictionDescription.Write(s, bw);
     s.WriteVector4(bw, m_chassisFrictionInertiaInvDiag);
     bw.WriteBoolean(m_alreadyInitialised);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
 }
Ejemplo n.º 2
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkbGenerator>(bw, m_nestedTypeHkbGeneratorPtr);
     s.WriteClassPointer <hkbGenerator>(bw, m_nestedTypeHkbGeneratorRefPtr);
     s.WriteClassPointer <hkbModifier>(bw, m_nestedTypeHkbModifierPtr);
     s.WriteClassPointer <hkbModifier>(bw, m_nestedTypeHkbModifierRefPtr);
     s.WriteClassPointer <hkbCustomIdSelector>(bw, m_nestedTypeHkbCustomIdSelectorPtr);
     s.WriteClassPointer <hkbCustomIdSelector>(bw, m_nestedTypeHkbCustomIdSelectorRefPtr);
     s.WriteBooleanArray(bw, m_nestedTypeArrayBool);
     s.WriteBooleanArray(bw, m_nestedTypeArrayHkBool);
     s.WriteStringPointerArray(bw, m_nestedTypeArrayCString);
     s.WriteStringPointerArray(bw, m_nestedTypeArrayHkStringPtr);
     s.WriteSByteArray(bw, m_nestedTypeArrayHkInt8);
     s.WriteInt16Array(bw, m_nestedTypeArrayHkInt16);
     s.WriteInt32Array(bw, m_nestedTypeArrayHkInt32);
     s.WriteByteArray(bw, m_nestedTypeArrayHkUint8);
     s.WriteUInt16Array(bw, m_nestedTypeArrayHkUint16);
     s.WriteUInt32Array(bw, m_nestedTypeArrayHkUint32);
     s.WriteSingleArray(bw, m_nestedTypeArrayHkReal);
     s.WriteClassPointerArray <hkbGenerator>(bw, m_nestedTypeArrayHkbGeneratorPtr);
     s.WriteClassPointerArray <hkbGenerator>(bw, m_nestedTypeArrayHkbGeneratorRefPtr);
     s.WriteClassPointerArray <hkbModifier>(bw, m_nestedTypeArrayHkbModifierPtr);
     s.WriteClassPointerArray <hkbModifier>(bw, m_nestedTypeArrayHkbModifierRefPtr);
     s.WriteClassPointerArray <hkbCustomIdSelector>(bw, m_nestedTypeArrayHkbCustomIdSelectorPtr);
     s.WriteClassPointerArray <hkbCustomIdSelector>(bw, m_nestedTypeArrayHkbCustomIdSelectorRefPtr);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteSByteArray(bw, m_name);
     s.WriteSByteArray(bw, m_nameStrike);
     s.WriteSByteArray(bw, m_nameLift);
     s.WriteSByteArray(bw, m_nameLock);
     s.WriteSByteArray(bw, m_nameUnlock);
     s.WriteSingleArray(bw, m_minPos);
     s.WriteSingleArray(bw, m_maxPos);
     s.WriteSingleArray(bw, m_minVel);
     s.WriteSingleArray(bw, m_maxVel);
     s.WriteSingleArray(bw, m_allBonesDown);
     s.WriteSingleArray(bw, m_anyBonesDown);
     bw.WriteSingle(m_posTol);
     bw.WriteSingle(m_velTol);
     bw.WriteSingle(m_duration);
     bw.WriteUInt32(0);
 }