Beispiel #1
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteUInt32Array(bw, m_convexPieceStream);
     s.WriteUInt32Array(bw, m_convexPieceOffsets);
     s.WriteUInt32Array(bw, m_convexPieceSingleTriangles);
 }
Beispiel #2
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteStringPointer(bw, m_name);
     s.WriteUInt32Array(bw, m_operators);
     s.WriteClassArray <hclClothStateBufferAccess>(bw, m_usedBuffers);
     s.WriteClassArray <hclClothStateTransformSetAccess>(bw, m_usedTransformSets);
     s.WriteUInt32Array(bw, m_usedSimCloths);
 }
Beispiel #3
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);
 }
Beispiel #4
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteVector4Array(bw, m_positions);
     s.WriteClassArray <hkaiDirectedGraphExplicitCostNode>(bw, m_nodes);
     s.WriteClassArray <hkaiDirectedGraphExplicitCostEdge>(bw, m_edges);
     s.WriteUInt32Array(bw, m_nodeData);
     s.WriteUInt32Array(bw, m_edgeData);
     bw.WriteInt32(m_nodeDataStriding);
     bw.WriteInt32(m_edgeDataStriding);
     s.WriteClassArray <hkaiStreamingSet>(bw, m_streamingSets);
 }
Beispiel #5
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkxNode>(bw, m_node);
     bw.WriteUInt64(0);
     s.WriteMatrix4(bw, m_worldFromMesh);
     bw.WriteUInt64(0);
     s.WriteClassPointer <hkxSkinBinding>(bw, m_skinBinding);
     s.WriteUInt32Array(bw, m_vertexChannels);
     s.WriteUInt32Array(bw, m_triangleChannels);
     s.WriteUInt32Array(bw, m_edgeChannels);
     s.WriteClassPointerArray <hclSceneDataSetupMeshSection>(bw, m_meshBufferInterfaces);
 }
Beispiel #6
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteUInt32Array(bw, m_vectorData);
     s.WriteUInt32Array(bw, m_floatData);
     s.WriteUInt32Array(bw, m_uint32Data);
     s.WriteUInt16Array(bw, m_uint16Data);
     s.WriteByteArray(bw, m_uint8Data);
     bw.WriteUInt32(m_numVerts);
     bw.WriteUInt32(m_vectorStride);
     bw.WriteUInt32(m_floatStride);
     bw.WriteUInt32(m_uint32Stride);
     bw.WriteUInt32(m_uint16Stride);
     bw.WriteUInt32(m_uint8Stride);
 }
Beispiel #7
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);
     bw.WriteUInt64(0);
     bw.WriteSingle(m_convexRadius);
     bw.WriteByte((byte)m_weldingType);
     bw.WriteBoolean(m_hasPerPrimitiveCollisionFilterInfo);
     bw.WriteBoolean(m_hasPerPrimitiveUserData);
     bw.WriteByte(0);
     s.WriteUInt32Array(bw, m_collisionFilterInfoPalette);
     s.WriteUInt32Array(bw, m_userDataPalette);
     s.WriteStringPointerArray(bw, m_userStringPalette);
     bw.WriteUInt64(0);
     m_tree.Write(s, bw);
 }
Beispiel #9
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hknpCompoundShape>(bw, m_shape);
     s.WriteClassPointerArray <hknpShapeKeyMask>(bw, m_instanceMasks);
     s.WriteUInt32Array(bw, m_filter);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     bw.WriteInt32(m_transformSetIndex);
     bw.WriteUInt32(0);
     s.WriteUInt32Array(bw, m_transformIndices);
     s.WriteMatrix4Array(bw, m_offsets);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteUInt32Array(bw, m_visitedEdges);
     s.WriteClassArray <hkaiPathPathPoint>(bw, m_pathOut);
     m_outputParameters.Write(s, bw);
 }
Beispiel #12
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <fsnpCustomMeshParameter>(bw, m_pParam);
     s.WriteUInt32Array(bw, m_triangleIndexToShapeKey);
     bw.WriteUInt64(0);
 }
Beispiel #13
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);
     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);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteUInt32Array(bw, m_packedVertices);
     s.WriteUInt64Array(bw, m_sharedVertices);
     s.WriteClassArray <hknpCompressedMeshShapeTreeDataRun>(bw, m_primitiveDataRuns);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteUInt32Array(bw, m_minMaxData);
     bw.WriteUInt16(m_xRes);
     bw.WriteUInt16(m_zRes);
     bw.WriteUInt32(0);
 }
Beispiel #17
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     s.WriteUInt32Array(bw, m_removeInfo);
     bw.WriteUInt64(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);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt32(m_sectionUid);
     bw.WriteInt32(m_runtimeId);
     bw.WriteUInt32(0);
     s.WriteClassPointer <hkaiDirectedGraphExplicitCost>(bw, m_originalGraph);
     s.WriteInt32Array(bw, m_nodeMap);
     s.WriteClassArray <hkaiDirectedGraphExplicitCostNode>(bw, m_instancedNodes);
     s.WriteClassArray <hkaiDirectedGraphExplicitCostEdge>(bw, m_ownedEdges);
     s.WriteUInt32Array(bw, m_ownedEdgeData);
     s.WriteInt32Array(bw, m_userEdgeCount);
     s.WriteClassArray <hkaiDirectedGraphInstanceFreeBlockList>(bw, m_freeEdgeBlocks);
     bw.WriteUInt64(0);
     s.WriteTransform(bw, m_transform);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteInt32(m_bitsPerIndex);
     bw.WriteInt32(m_bitsPerWIndex);
     bw.WriteInt32(m_wIndexMask);
     bw.WriteInt32(m_indexMask);
     bw.WriteSingle(m_radius);
     bw.WriteByte((byte)m_weldingType);
     bw.WriteByte((byte)m_materialType);
     bw.WriteUInt16(0);
     s.WriteUInt32Array(bw, m_materials);
     s.WriteUInt16Array(bw, m_materials16);
     s.WriteByteArray(bw, m_materials8);
     s.WriteQSTransformArray(bw, m_transforms);
     s.WriteVector4Array(bw, m_bigVertices);
     s.WriteClassArray <hkpCompressedMeshShapeBigTriangle>(bw, m_bigTriangles);
     s.WriteClassArray <hkpCompressedMeshShapeChunk>(bw, m_chunks);
     s.WriteClassArray <hkpCompressedMeshShapeConvexPiece>(bw, m_convexPieces);
     bw.WriteSingle(m_error);
     bw.WriteUInt32(0);
     m_bounds.Write(s, bw);
     bw.WriteUInt32(m_defaultCollisionFilterInfo);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(m_materialStriding);
     bw.WriteUInt16(m_numMaterials);
     bw.WriteUInt32(0);
     s.WriteClassArray <hkpNamedMeshMaterial>(bw, m_namedMaterials);
     bw.WriteUInt64(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassArray <hkMemoryMeshShapeSection>(bw, m_sections);
     s.WriteUInt16Array(bw, m_indices16);
     s.WriteUInt32Array(bw, m_indices32);
     s.WriteStringPointer(bw, m_name);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteInt32(m_numFrames);
     bw.WriteInt32(m_numBlocks);
     bw.WriteInt32(m_maxFramesPerBlock);
     bw.WriteInt32(m_maskAndQuantizationSize);
     bw.WriteSingle(m_blockDuration);
     bw.WriteSingle(m_blockInverseDuration);
     bw.WriteSingle(m_frameDuration);
     bw.WriteUInt32(0);
     s.WriteUInt32Array(bw, m_blockOffsets);
     s.WriteUInt32Array(bw, m_floatBlockOffsets);
     s.WriteUInt32Array(bw, m_transformOffsets);
     s.WriteUInt32Array(bw, m_floatOffsets);
     s.WriteByteArray(bw, m_data);
     bw.WriteInt32(m_endian);
     bw.WriteUInt32(0);
 }
Beispiel #22
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteSByte((sbyte)m_indexType);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     s.WriteUInt16Array(bw, m_indices16);
     s.WriteUInt32Array(bw, m_indices32);
     bw.WriteUInt32(m_vertexBaseOffset);
     bw.WriteUInt32(m_length);
 }
Beispiel #23
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteVector4Array(bw, m_vertices);
     s.WriteByteArray(bw, m_indices8);
     s.WriteUInt16Array(bw, m_indices16);
     s.WriteUInt32Array(bw, m_indices32);
     s.WriteByteArray(bw, m_materialIndices);
     s.WriteClassArray <hkpStorageExtendedMeshShapeMaterial>(bw, m_materials);
     s.WriteClassArray <hkpNamedMeshMaterial>(bw, m_namedMaterials);
     s.WriteUInt16Array(bw, m_materialIndices16);
 }
Beispiel #24
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);
 }
Beispiel #25
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassArray <hkaiNavMeshCutterMeshInfo>(bw, m_meshInfos);
     m_connectivityInfo.Write(s, bw);
     s.WriteClassPointer <hkaiStreamingCollection>(bw, m_streamingCollection);
     s.WriteUInt32Array(bw, m_forceRecutFaceKeys);
     s.WriteUInt32Array(bw, m_forceClearanceCalcFaceKeys);
     s.WriteVector4(bw, m_up);
     m_edgeMatchParams.Write(s, bw);
     bw.WriteUInt64(0);
     bw.WriteSingle(m_cutEdgeTolerance);
     bw.WriteSingle(m_minEdgeMatchingLength);
     bw.WriteSingle(m_smallGapFixupTolerance);
     bw.WriteBoolean(m_performValidationChecks);
     bw.WriteByte((byte)m_clearanceResetMethod);
     bw.WriteBoolean(m_recomputeClearanceAfterCutting);
     bw.WriteBoolean(m_useNewCutter);
     bw.WriteSingle(m_domainQuantum);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     bw.WriteSingle(m_accuracy);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     m_domain.Write(s, bw);
     s.WriteVector4(bw, m_origin);
     s.WriteVector4(bw, m_scale);
     bw.WriteSingle(m_range_0);
     bw.WriteSingle(m_range_1);
     s.WriteUInt32Array(bw, m_nodes);
     s.WriteUInt16Array(bw, m_voxels);
     bw.WriteUInt64(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteVector4(bw, m_startPoint);
     s.WriteVector4Array(bw, m_goalPoints);
     bw.WriteUInt32(m_startCellKey);
     bw.WriteUInt32(0);
     s.WriteUInt32Array(bw, m_goalCellKeys);
     bw.WriteInt32(m_maxNumberOfIterations);
     m_agentInfo.Write(s, bw);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     m_searchParameters.Write(s, bw);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
 }
Beispiel #28
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteUInt32Array(bw, m_vertexIndices);
 }
Beispiel #29
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteUInt32Array(bw, m_words);
     bw.WriteInt32(m_numBits);
     bw.WriteUInt32(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassArray <hkpBreakableMultiMaterialInverseMappingDescriptor>(bw, m_descriptors);
     s.WriteUInt32Array(bw, m_subShapeIds);
 }