Exemplo n.º 1
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteSingle(m_downshiftRPM);
     bw.WriteSingle(m_upshiftRPM);
     bw.WriteSingle(m_primaryTransmissionRatio);
     bw.WriteSingle(m_clutchDelayTime);
     bw.WriteSingle(m_reverseGearRatio);
     bw.WriteUInt32(0);
     s.WriteSingleArray(bw, m_gearsRatio);
     s.WriteSingleArray(bw, m_wheelsTorqueRatio);
 }
Exemplo n.º 2
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteUInt32Array(bw, m_startNodeKeys);
     s.WriteSingleArray(bw, m_initialCosts);
     s.WriteUInt32Array(bw, m_goalNodeKeys);
     s.WriteSingleArray(bw, m_finalCosts);
     bw.WriteInt32(m_maxNumberOfIterations);
     m_agentInfo.Write(s, bw);
     bw.WriteUInt32(0);
     m_searchParameters.Write(s, bw);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteByteArray(bw, m_compressedData);
     s.WriteUInt16Array(bw, m_intData);
     bw.WriteInt32(m_intArrayOffsets_0);
     bw.WriteInt32(m_intArrayOffsets_1);
     bw.WriteInt32(m_intArrayOffsets_2);
     bw.WriteInt32(m_intArrayOffsets_3);
     bw.WriteInt32(m_intArrayOffsets_4);
     bw.WriteInt32(m_intArrayOffsets_5);
     bw.WriteInt32(m_intArrayOffsets_6);
     bw.WriteInt32(m_intArrayOffsets_7);
     bw.WriteInt32(m_intArrayOffsets_8);
     bw.WriteUInt32(0);
     s.WriteSingleArray(bw, m_floatData);
     bw.WriteInt32(m_floatArrayOffsets_0);
     bw.WriteInt32(m_floatArrayOffsets_1);
     bw.WriteInt32(m_floatArrayOffsets_2);
     bw.WriteInt32(m_numBones);
     bw.WriteInt32(m_numFloatSlots);
     bw.WriteInt32(m_numFrames);
     bw.WriteInt32(m_firstFloatBlockScaleAndOffsetIndex);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
 }
Exemplo n.º 4
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);
 }
Exemplo n.º 5
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);
     s.WriteClassPointer <hkbGenerator>(bw, m_child);
     bw.WriteInt32(m_desiredAIMovementMode);
     bw.WriteSingle(m_effectiveLinearSpeed);
     bw.WriteSingle(m_effectiveAngularSpeed);
     bw.WriteSingle(m_effectiveHorizontalAim);
     bw.WriteSingle(m_effectiveVerticalAim);
     bw.WriteSingle(m_torsoTiltAngle);
     bw.WriteSingle(m_desiredAIMovementSpeed);
     bw.WriteSingle(m_currentMaximumSpeed);
     bw.WriteSingle(m_linearSpeed);
     bw.WriteSingle(m_angularSpeed);
     bw.WriteSingle(m_horizontalAim);
     bw.WriteSingle(m_verticalAim);
     bw.WriteSingle(m_rotationSpeed);
     bw.WriteInt32(m_poseIdx);
     bw.WriteInt32(m_rotationAllowed);
     bw.WriteUInt32(0);
     m_leftFootDownEvent.Write(s, bw);
     m_rightFootDownEvent.Write(s, bw);
     m_immediateStopEvent.Write(s, bw);
     m_changePoseEvent.Write(s, bw);
     m_moveEvent.Write(s, bw);
     m_stopEvent.Write(s, bw);
     s.WriteSingleArray(bw, m_moveVelocities);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteUInt16Array(bw, m_vertToNormalID);
     s.WriteByteArray(bw, m_triangleFlips);
     s.WriteUInt16Array(bw, m_referenceVertices);
     s.WriteSingleArray(bw, m_tangentEdgeCosAngle);
     s.WriteSingleArray(bw, m_tangentEdgeSinAngle);
     s.WriteSingleArray(bw, m_biTangentFlip);
     bw.WriteUInt32(m_bufferIdx);
     bw.WriteUInt32(m_numUniqueNormalIDs);
     bw.WriteBoolean(m_updateNormals);
     bw.WriteBoolean(m_updateTangents);
     bw.WriteBoolean(m_updateBiTangents);
     bw.WriteUInt32(0);
     bw.WriteByte(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteStringPointerArray(bw, m_cameraVariableFloatNames);
     s.WriteSingleArray(bw, m_cameraFloatValues);
     s.WriteStringPointerArray(bw, m_cameraVariableVectorNames);
     s.WriteVector4Array(bw, m_cameraVectorValues);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteSingleArray(bw, m_floats);
     bw.WriteByte((byte)m_hint);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteSingleArray(bw, m_perVertexFloats);
     bw.WriteByte((byte)m_dimensions);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
 }
Exemplo n.º 11
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteSingleArray(bw, m_vertices);
     s.WriteUInt16Array(bw, m_indices16);
     s.WriteUInt32Array(bw, m_indices32);
     s.WriteByteArray(bw, m_materialIndices);
     s.WriteUInt32Array(bw, m_materials);
     s.WriteUInt16Array(bw, m_materialIndices16);
 }
Exemplo n.º 12
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteSingleArray(bw, m_attributeDefaults);
     s.WriteClassArray <hkbVariableInfo>(bw, m_variableInfos);
     s.WriteClassArray <hkbVariableInfo>(bw, m_characterPropertyInfos);
     s.WriteClassArray <hkbEventInfo>(bw, m_eventInfos);
     s.WriteClassArray <hkbVariableBounds>(bw, m_variableBounds);
     s.WriteClassPointer <hkbVariableValueSet>(bw, m_variableInitialValues);
     s.WriteClassPointer <hkbBehaviorGraphStringData>(bw, m_stringData);
 }
Exemplo n.º 13
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassArray <hclUpdateSomeVertexFramesOperatorTriangle>(bw, m_involvedTriangles);
     s.WriteUInt16Array(bw, m_involvedVertices);
     s.WriteUInt16Array(bw, m_selectionVertexToInvolvedVertex);
     s.WriteUInt16Array(bw, m_involvedVertexToNormalID);
     s.WriteByteArray(bw, m_triangleFlips);
     s.WriteUInt16Array(bw, m_referenceVertices);
     s.WriteSingleArray(bw, m_tangentEdgeCosAngle);
     s.WriteSingleArray(bw, m_tangentEdgeSinAngle);
     s.WriteSingleArray(bw, m_biTangentFlip);
     bw.WriteUInt32(m_bufferIdx);
     bw.WriteUInt32(m_numUniqueNormalIDs);
     bw.WriteBoolean(m_updateNormals);
     bw.WriteBoolean(m_updateTangents);
     bw.WriteBoolean(m_updateBiTangents);
     bw.WriteUInt32(0);
     bw.WriteByte(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkxVertexBuffer>(bw, m_vertexBuffer);
     s.WriteClassPointerArray <hkxIndexBuffer>(bw, m_indexBuffers);
     s.WriteClassPointer <hkxMaterial>(bw, m_material);
     s.WriteClassPointerArray <hkReferencedObject>(bw, m_userChannels);
     s.WriteClassPointerArray <hkxVertexAnimation>(bw, m_vertexAnimations);
     s.WriteSingleArray(bw, m_linearKeyFrameHints);
     s.WriteClassArray <hkMeshBoneIndexMapping>(bw, m_boneMatrixMap);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteSingle(m_smoothingFactor);
     bw.WriteBoolean(m_closedLoop);
     bw.WriteUInt64(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     s.WriteVector4(bw, m_dirNotParallelToTangentAlongWholePath);
     s.WriteVector4Array(bw, m_points);
     s.WriteSingleArray(bw, m_distance);
 }
Exemplo n.º 16
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteStringPointer(bw, m_name);
     s.WriteInt16Array(bw, m_parentIndices);
     s.WriteClassArray <hkaBone>(bw, m_bones);
     s.WriteQSTransformArray(bw, m_referencePose);
     s.WriteSingleArray(bw, m_referenceFloats);
     s.WriteStringPointerArray(bw, m_floatSlots);
     s.WriteClassArray <hkaSkeletonLocalFrameOnBone>(bw, m_localFrames);
     s.WriteClassArray <hkaSkeletonPartition>(bw, m_partitions);
 }
Exemplo n.º 17
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteUInt32Array(bw, m_visitedEdgesOut);
     s.WriteSingleArray(bw, m_distancesOut);
     s.WriteVector4Array(bw, m_pointsOut);
     bw.WriteBoolean(m_doNotExceedArrayCapacity);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     bw.WriteInt32(m_numIterationsOut);
     bw.WriteUInt32(m_finalFaceKey);
     bw.WriteSingle(m_accumulatedDistance);
     s.WriteVector4(bw, m_finalPoint);
 }
Exemplo n.º 18
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteStringPointer(bw, m_name);
     s.WriteClassPointer <hkReferencedObject>(bw, m_object);
     s.WriteMatrix4Array(bw, m_keyFrames);
     s.WriteClassPointerArray <hkxNode>(bw, m_children);
     s.WriteClassArray <hkxNodeAnnotationData>(bw, m_annotations);
     s.WriteSingleArray(bw, m_linearKeyFrameHints);
     s.WriteStringPointer(bw, m_userProperties);
     bw.WriteBoolean(m_selected);
     bw.WriteBoolean(m_bone);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     m_fromGeneratorSyncInfo.Write(s, bw);
     m_fromGeneratorPartitionInfo.Write(s, bw);
     bw.WriteUInt32(0);
     s.WriteQSTransform(bw, m_worldFromModel);
     s.WriteQSTransform(bw, m_motion);
     s.WriteQSTransformArray(bw, m_pose);
     s.WriteQSTransformArray(bw, m_additivePose);
     s.WriteSingleArray(bw, m_boneWeights);
     bw.WriteSingle(m_toGeneratorDuration);
     bw.WriteBoolean(m_isFromGeneratorActive);
     bw.WriteBoolean(m_gotPose);
     bw.WriteBoolean(m_gotAdditivePose);
     bw.WriteUInt64(0);
     bw.WriteByte(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkbGenerator>(bw, m_child);
     bw.WriteBoolean(m_autoTurnsAllowed);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     bw.WriteInt32(m_desiredAIMovementMode);
     bw.WriteSingle(m_effectiveLinearSpeed);
     bw.WriteSingle(m_effectiveAngularSpeed);
     bw.WriteSingle(m_effectiveHorizontalAim);
     bw.WriteSingle(m_effectiveVerticalAim);
     bw.WriteSingle(m_torsoTiltAngle);
     bw.WriteSingle(m_desiredAIMovementSpeed);
     bw.WriteSingle(m_currentMaximumSpeed);
     bw.WriteBoolean(m_stopRequest);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     bw.WriteInt32(m_idleToMoveAnimIdx);
     bw.WriteSingle(m_linearSpeed);
     bw.WriteSingle(m_angularSpeed);
     bw.WriteSingle(m_horizontalAim);
     bw.WriteSingle(m_verticalAim);
     bw.WriteBoolean(m_rotationAllowed);
     bw.WriteBoolean(m_poseChangeAllowed);
     bw.WriteBoolean(m_modifyLinearSpeed);
     bw.WriteByte(0);
     bw.WriteInt32(m_poseIdx);
     bw.WriteUInt32(0);
     m_leftFootDownEvent.Write(s, bw);
     m_rightFootDownEvent.Write(s, bw);
     m_immediateStopEvent.Write(s, bw);
     m_rapidTurnEvent.Write(s, bw);
     m_changeMovementDirectionEvent.Write(s, bw);
     m_changePoseEvent.Write(s, bw);
     m_moveEvent.Write(s, bw);
     m_stopEvent.Write(s, bw);
     m_characterHasHalted.Write(s, bw);
     s.WriteSingleArray(bw, m_moveVelocities);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
 }
 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);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteSingleArray(bw, m_data);
     s.WriteClassArray <hkaiIntervalPartitionLibraryPartitionRecord>(bw, m_partitionRecords);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteUInt32Array(bw, m_boneIndices);
     s.WriteSingleArray(bw, m_weights);
 }
Exemplo n.º 24
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteQSTransformArray(bw, m_transforms);
     s.WriteSingleArray(bw, m_floats);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteSingleArray(bw, m_quaternions);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteBooleanArray(bw, m_bools);
     s.WriteSingleArray(bw, m_times);
 }
Exemplo n.º 27
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteInt32Array(bw, m_ints);
     s.WriteSingleArray(bw, m_times);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteStringPointerArray(bw, m_strings);
     s.WriteSingleArray(bw, m_times);
 }
Exemplo n.º 29
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteSingleArray(bw, m_perVertexVectors);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteSingleArray(bw, m_parameterValues);
     s.WriteInt32Array(bw, m_parameterTypes);
 }