Ejemplo n.º 1
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);
 }
Ejemplo n.º 2
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     s.WriteClassPointer <hknpVehicleData>(bw, m_data);
     s.WriteClassPointer <hknpVehicleDriverInput>(bw, m_driverInput);
     s.WriteClassPointer <hknpVehicleSteering>(bw, m_steering);
     s.WriteClassPointer <hknpVehicleEngine>(bw, m_engine);
     s.WriteClassPointer <hknpVehicleTransmission>(bw, m_transmission);
     s.WriteClassPointer <hknpVehicleBrake>(bw, m_brake);
     s.WriteClassPointer <hknpVehicleSuspension>(bw, m_suspension);
     s.WriteClassPointer <hknpVehicleAerodynamics>(bw, m_aerodynamics);
     s.WriteClassPointer <hknpVehicleWheelCollide>(bw, m_wheelCollide);
     s.WriteClassPointer <hknpTyremarksInfo>(bw, m_tyreMarks);
     s.WriteClassPointer <hknpVehicleVelocityDamper>(bw, m_velocityDamper);
     s.WriteClassArray <hknpVehicleInstanceWheelInfo>(bw, m_wheelsInfo);
     m_frictionStatus.Write(s, bw);
     s.WriteClassPointer <hknpVehicleDriverInputStatus>(bw, m_deviceStatus);
     s.WriteBooleanArray(bw, m_isFixed);
     bw.WriteSingle(m_wheelsTimeSinceMaxPedalInput);
     bw.WriteBoolean(m_tryingToReverse);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     bw.WriteSingle(m_torque);
     bw.WriteSingle(m_rpm);
     bw.WriteSingle(m_mainSteeringAngle);
     bw.WriteSingle(m_mainSteeringAngleAssumingNoReduction);
     s.WriteSingleArray(bw, m_wheelsSteeringAngle);
     bw.WriteBoolean(m_isReversing);
     bw.WriteSByte(m_currentGear);
     bw.WriteBoolean(m_delayed);
     bw.WriteByte(0);
     bw.WriteSingle(m_clutchDelayCountdown);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteSingle(m_maxSteeringAngle);
     bw.WriteSingle(m_maxSpeedFullSteeringAngle);
     s.WriteBooleanArray(bw, m_doesWheelSteer);
 }
Ejemplo n.º 4
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     m_simulationInfo.Write(s, bw);
     s.WriteStringPointer(bw, m_name);
     s.WriteClassArray <hclSimClothDataParticleData>(bw, m_particleDatas);
     s.WriteUInt16Array(bw, m_fixedParticles);
     s.WriteUInt16Array(bw, m_triangleIndices);
     s.WriteByteArray(bw, m_triangleFlips);
     bw.WriteSingle(m_totalMass);
     bw.WriteUInt32(0);
     m_collidableTransformMap.Write(s, bw);
     s.WriteClassPointerArray <hclCollidable>(bw, m_perInstanceCollidables);
     s.WriteClassPointerArray <hclConstraintSet>(bw, m_staticConstraintSets);
     s.WriteClassPointerArray <hclConstraintSet>(bw, m_antiPinchConstraintSets);
     s.WriteClassPointerArray <hclSimClothPose>(bw, m_simClothPoses);
     s.WriteClassPointerArray <hclAction>(bw, m_actions);
     s.WriteUInt32Array(bw, m_staticCollisionMasks);
     s.WriteBooleanArray(bw, m_perParticlePinchDetectionEnabledFlags);
     s.WriteClassArray <hclSimClothDataCollidablePinchingData>(bw, m_collidablePinchingDatas);
     bw.WriteUInt16(m_minPinchedParticleIndex);
     bw.WriteUInt16(m_maxPinchedParticleIndex);
     bw.WriteUInt32(m_maxCollisionPairs);
     bw.WriteSingle(m_maxParticleRadius);
     m_landscapeCollisionData.Write(s, bw);
     bw.WriteUInt32(m_numLandscapeCollidableParticles);
     bw.WriteBoolean(m_doNormals);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     m_transferMotionData.Write(s, bw);
 }
Ejemplo n.º 5
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteBooleanArray(bw, m_wasActiveInPreviousFrame);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteBooleanArray(bw, m_bools);
     s.WriteSingleArray(bw, m_times);
 }