Beispiel #1
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     m_eventToSendWhenStateOrTransitionChanges.Write(s, bw);
     s.WriteClassPointer <hkbCustomIdSelector>(bw, m_startStateIdSelector);
     bw.WriteInt32(m_startStateId);
     bw.WriteInt32(m_returnToPreviousStateEventId);
     bw.WriteInt32(m_randomTransitionEventId);
     bw.WriteInt32(m_transitionToNextHigherStateEventId);
     bw.WriteInt32(m_transitionToNextLowerStateEventId);
     bw.WriteInt32(m_syncVariableIndex);
     bw.WriteUInt32(0);
     bw.WriteBoolean(m_wrapAroundStateId);
     bw.WriteSByte(m_maxSimultaneousTransitions);
     bw.WriteSByte((sbyte)m_startStateMode);
     bw.WriteSByte((sbyte)m_selfTransitionMode);
     bw.WriteUInt64(0);
     s.WriteClassPointerArray <hkbStateMachineStateInfo>(bw, m_states);
     s.WriteClassPointer <hkbStateMachineTransitionInfoArray>(bw, m_wildcardTransitions);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     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.WriteStringPointer(bw, m_name);
     s.WriteClassPointer <hclSimClothSetupObject>(bw, m_simClothSetupObject);
     s.WriteClassPointer <hclBufferSetupObject>(bw, m_displayBufferSetup);
 }
Beispiel #3
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteUInt64Array(bw, m_deformableSkinIds);
     s.WriteUInt64Array(bw, m_rigidSkinIds);
     s.WriteInt16Array(bw, m_externalEventIds);
     s.WriteClassPointerArray <hkbAuxiliaryNodeInfo>(bw, m_auxiliaryInfo);
     s.WriteInt16Array(bw, m_activeEventIds);
     s.WriteInt16Array(bw, m_activeVariableIds);
     bw.WriteUInt64(m_characterId);
     s.WriteStringPointer(bw, m_instanceName);
     s.WriteStringPointer(bw, m_templateName);
     s.WriteStringPointer(bw, m_fullPathToProject);
     s.WriteStringPointer(bw, m_localScriptsPath);
     s.WriteStringPointer(bw, m_remoteScriptsPath);
     s.WriteClassPointer <hkbBehaviorGraphData>(bw, m_behaviorData);
     s.WriteClassPointer <hkbBehaviorGraphInternalState>(bw, m_behaviorInternalState);
     bw.WriteUInt64(0);
     bw.WriteBoolean(m_visible);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     bw.WriteSingle(m_elapsedSimulationTime);
     s.WriteClassPointer <hkaSkeleton>(bw, m_skeleton);
     bw.WriteUInt64(0);
     s.WriteQSTransform(bw, m_worldFromModel);
     s.WriteQSTransformArray(bw, m_poseModelSpace);
     s.WriteQSTransformArray(bw, m_rigidAttachmentTransforms);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointerArray <hkbCharacter>(bw, m_nearbyCharacters);
     bw.WriteUInt64(m_userData);
     bw.WriteInt16(m_currentLod);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     s.WriteStringPointer(bw, m_name);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     s.WriteClassPointer <hkbCharacterSetup>(bw, m_setup);
     s.WriteClassPointer <hkbBehaviorGraph>(bw, m_behaviorGraph);
     s.WriteClassPointer <hkbProjectData>(bw, m_projectData);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteInt32(m_capabilities);
     bw.WriteInt32(m_effectiveCapabilities);
     bw.WriteSingle(m_deltaTime);
     bw.WriteBoolean(m_useCharactorDeltaTime);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkpRigidBody>(bw, m_rigidBody);
     s.WriteClassPointer <hkReferencedObject>(bw, m_displayObjectPtr);
     s.WriteMatrix4(bw, m_rigidBodyFromDisplayObjectTransform);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkaiNavMeshInstance>(bw, m_instance);
     s.WriteClassPointer <hkaiNavMeshQueryMediator>(bw, m_mediator);
     s.WriteClassPointer <hkaiDirectedGraphInstance>(bw, m_graph);
 }
Beispiel #7
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkcdPlanarGeometryPlanesCollection>(bw, m_planes);
     s.WriteClassPointer <hkcdPlanarGeometryPolygonCollection>(bw, m_polys);
     bw.WriteUInt64(0);
 }
Beispiel #8
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(m_userData);
     bw.WriteUInt64(0);
     s.WriteVector4(bw, m_position);
     s.WriteVector4(bw, m_forward);
     s.WriteVector4(bw, m_velocity);
     s.WriteVector4(bw, m_up);
     bw.WriteUInt32(m_currentNavMeshFace);
     bw.WriteSingle(m_radius);
     bw.WriteSingle(m_desiredSpeed);
     m_adaptiveRanger.Write(s, bw);
     s.WriteClassPointer <hkaiAstarCostModifier>(bw, m_costModifier);
     s.WriteClassPointer <hkaiAstarEdgeFilter>(bw, m_edgeFilter);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt32(m_agentFilterInfo);
     bw.WriteUInt32(0);
     s.WriteClassPointer <hkaiAvoidanceProperties>(bw, m_avoidanceProperties);
     bw.WriteSingle(m_avoidanceState);
     bw.WriteUInt32(m_agentPriority);
     bw.WriteUInt16(m_avoidanceType);
     bw.WriteByte(m_avoidanceEnabledMask);
     bw.WriteByte(0);
     bw.WriteInt32((int)m_state);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt32(m_layer);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
 }
Beispiel #9
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     s.WriteVector4(bw, m_sensorLocalOffset);
     s.WriteClassArray <hkbSenseHandleModifierRange>(bw, m_ranges);
     s.WriteClassPointer <hkbHandle>(bw, m_handleOut);
     s.WriteClassPointer <hkbHandle>(bw, m_handleIn);
     s.WriteStringPointer(bw, m_localFrameName);
     s.WriteStringPointer(bw, m_sensorLocalFrameName);
     bw.WriteSingle(m_minDistance);
     bw.WriteSingle(m_maxDistance);
     bw.WriteSingle(m_distanceOut);
     bw.WriteUInt32(m_collisionFilterInfo);
     bw.WriteInt16(m_sensorRagdollBoneIndex);
     bw.WriteInt16(m_sensorAnimationBoneIndex);
     bw.WriteSByte((sbyte)m_sensingMode);
     bw.WriteBoolean(m_extrapolateSensorPosition);
     bw.WriteBoolean(m_keepFirstSensedHandle);
     bw.WriteBoolean(m_foundHandleOut);
     bw.WriteUInt64(0);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteClassPointer <hkaiNavMeshInstance>(bw, m_navMeshInstance);
     s.WriteClassPointer <hkGeometry>(bw, m_geometry);
     m_walkableBitfield.Write(s, bw);
     m_cuttingBitfield.Write(s, bw);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkcdPlanarSolidNodeStorage>(bw, m_nodes);
     s.WriteClassPointer <hkcdPlanarGeometryPlanesCollection>(bw, m_planes);
     bw.WriteUInt32(m_rootNodeId);
     bw.WriteUInt32(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkpConvexPieceStreamData>(bw, m_convexPieceStream);
     s.WriteClassPointer <hkpShapeCollection>(bw, m_displayMesh);
     bw.WriteSingle(m_radius);
     bw.WriteUInt32(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkaiStreamingCollection>(bw, m_collection);
     s.WriteClassPointer <hkcdDynamicAabbTree>(bw, m_aabbTree);
     s.WriteClassPointer <hkaiNavMeshCutter>(bw, m_cutter);
     bw.WriteSingle(m_cutAabbTolerance);
     bw.WriteUInt32(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkbGenerator>(bw, m_referenceFrameGenerator);
     s.WriteClassPointer <hkbGenerator>(bw, m_pinnedGenerator);
     s.WriteClassPointer <hkbBoneIndexArray>(bw, m_boneIndices);
     bw.WriteSingle(m_fraction);
     bw.WriteUInt32(0);
 }
Beispiel #15
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteClassPointer <hkGeometry>(bw, m_geometry);
     s.WriteClassPointerArray <hkaiCarver>(bw, m_carvers);
     m_cuttingTriangles.Write(s, bw);
     m_settings.Write(s, bw);
     s.WriteClassPointer <hkaiNavMesh>(bw, m_unsimplifiedNavMesh);
     bw.WriteUInt64(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkcdPlanarGeometry>(bw, m_geometry);
     s.WriteClassPointer <hkcdPlanarGeometry>(bw, m_danglingGeometry);
     s.WriteClassPointer <hkcdPlanarSolid>(bw, m_solid);
     s.WriteClassArray <hkcdPlanarCsgOperandGeomSource>(bw, m_geomSources);
     bw.WriteUInt64(0);
 }
Beispiel #17
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkbGenerator>(bw, m_generator);
     s.WriteClassPointer <hkbBoneWeightArray>(bw, m_boneWeights);
     bw.WriteSingle(m_weight);
     bw.WriteSingle(m_worldFromModelWeight);
     bw.WriteUInt64(0);
 }
Beispiel #18
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkLocalFrame>(bw, m_frame);
     s.WriteClassPointer <hkReferencedObject>(bw, m_rigidBody);
     s.WriteClassPointer <hkbCharacter>(bw, m_character);
     bw.WriteInt16(m_animationBoneIndex);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteTransform(bw, m_transform);
     s.WriteClassPointerArray <hkLocalFrame>(bw, m_children);
     s.WriteClassPointer <hkLocalFrame>(bw, m_parentFrame);
     s.WriteClassPointer <hkLocalFrameGroup>(bw, m_group);
     s.WriteStringPointer(bw, m_name);
     bw.WriteUInt64(0);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteClassPointer <hkaiNavMeshInstance>(bw, m_instancePtr);
     s.WriteClassPointer <hkaiNavVolumeInstance>(bw, m_volumeInstancePtr);
     s.WriteClassPointer <hkaiDirectedGraphInstance>(bw, m_clusterGraphInstance);
     s.WriteClassPointer <hkaiNavMeshQueryMediator>(bw, m_mediator);
     s.WriteClassPointer <hkaiNavVolumeMediator>(bw, m_volumeMediator);
     bw.WriteUInt32(m_treeNode);
     bw.WriteUInt32(0);
 }
Beispiel #21
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteMatrix4(bw, m_transform);
     s.WriteClassPointer <hkIndexedTransformSet>(bw, m_transformSet);
     s.WriteClassPointer <hkMeshShape>(bw, m_shape);
     s.WriteClassPointerArray <hkMeshVertexBuffer>(bw, m_vertexBuffers);
     s.WriteStringPointer(bw, m_name);
     bw.WriteUInt64(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkpBreakableBodyController>(bw, m_controller);
     s.WriteClassPointer <hkpBreakableShape>(bw, m_breakableShape);
     bw.WriteByte(m_bodyTypeAndFlags);
     bw.WriteByte(0);
     bw.WriteInt16(m_constraintStrength);
     bw.WriteUInt32(0);
 }
Beispiel #23
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteInt32(m_numLevelsOfDetail);
     m_infos_0.Write(s, bw);
     m_infos_1.Write(s, bw);
     m_infos_2.Write(s, bw);
     m_infos_3.Write(s, bw);
     m_infos_4.Write(s, bw);
     m_infos_5.Write(s, bw);
     m_infos_6.Write(s, bw);
     m_infos_7.Write(s, bw);
     bw.WriteUInt32(0);
     s.WriteClassPointer <hknpShape>(bw, m_shapes_0);
     s.WriteClassPointer <hknpShape>(bw, m_shapes_1);
     s.WriteClassPointer <hknpShape>(bw, m_shapes_2);
     s.WriteClassPointer <hknpShape>(bw, m_shapes_3);
     s.WriteClassPointer <hknpShape>(bw, m_shapes_4);
     s.WriteClassPointer <hknpShape>(bw, m_shapes_5);
     s.WriteClassPointer <hknpShape>(bw, m_shapes_6);
     s.WriteClassPointer <hknpShape>(bw, m_shapes_7);
     bw.WriteUInt32(m_shapesMemorySizes_0);
     bw.WriteUInt32(m_shapesMemorySizes_1);
     bw.WriteUInt32(m_shapesMemorySizes_2);
     bw.WriteUInt32(m_shapesMemorySizes_3);
     bw.WriteUInt32(m_shapesMemorySizes_4);
     bw.WriteUInt32(m_shapesMemorySizes_5);
     bw.WriteUInt32(m_shapesMemorySizes_6);
     bw.WriteUInt32(m_shapesMemorySizes_7);
     bw.WriteInt32(m_indexCurrentShapeOnSpu);
     bw.WriteUInt32(0);
     s.WriteClassPointer <hknpShape>(bw, m_currentShapePpuAddress);
     bw.WriteUInt64(0);
     m_maximumAabb.Write(s, bw);
 }
Beispiel #24
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     s.WriteClassPointer <hclSceneDataSetupMesh>(bw, m_setupMesh);
     s.WriteClassPointer <hkxMeshSection>(bw, m_meshSection);
     bw.WriteBoolean(m_skinnedSection);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
 }
Beispiel #25
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);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     m_controlData.Write(s, bw);
     s.WriteClassPointer <hkbBoneIndexArray>(bw, m_bones);
     m_worldFromModelModeData.Write(s, bw);
     s.WriteClassPointer <hkbBoneWeightArray>(bw, m_boneWeights);
     bw.WriteSingle(m_animationBlendFraction);
     bw.WriteUInt32(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteStringPointer(bw, m_name);
     s.WriteClassPointer <hclBufferSetupObject>(bw, m_inputBufferSetupObject);
     m_inputTriangleSelection.Write(s, bw);
     s.WriteClassPointer <hclTransformSetSetupObject>(bw, m_outputTransformSetSetupObject);
     s.WriteStringPointerArray(bw, m_deformedBones);
     bw.WriteUInt32(m_maxTrianglesPerBone);
     bw.WriteSingle(m_minimumTriangleWeight);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteStringPointer(bw, m_name);
     s.WriteClassPointer <hclBufferSetupObject>(bw, m_inputBufferSetupObject);
     s.WriteClassPointer <hclBufferSetupObject>(bw, m_outputBufferSetupObject);
     bw.WriteBoolean(m_copyNormals);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
 }
Beispiel #29
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkbReferencedGeneratorSyncInfo>(bw, m_syncInfo);
     s.WriteStringPointer(bw, m_name);
     s.WriteClassPointer <hkReferencedObject>(bw, m_internalState);
     bw.WriteUInt16(m_nodeId);
     bw.WriteBoolean(m_hasActivateBeenCalled);
     bw.WriteBoolean(m_isModifierEnabled);
     bw.WriteUInt32(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);
 }