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 virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     bw.WriteUInt32(m_secondaryKeyMask);
     bw.WriteUInt32(m_sencondaryKeyBits);
     s.WriteUInt16Array(bw, m_primaryKeyToIndex);
     s.WriteUInt16Array(bw, m_valueAndSecondaryKeys);
 }
Exemple #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);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteUInt16Array(bw, m_storage);
     s.WriteUInt16Array(bw, m_shapeTags);
     bw.WriteBoolean(m_triangleFlip);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     bw.WriteSingle(m_offset);
     bw.WriteSingle(m_scale);
     bw.WriteUInt32(0);
 }
Exemple #5
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);
 }
Exemple #6
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteVector4(bw, m_offset);
     s.WriteUInt16Array(bw, m_vertices);
     s.WriteUInt16Array(bw, m_indices);
     s.WriteUInt16Array(bw, m_stripLengths);
     s.WriteUInt16Array(bw, m_weldingInfo);
     bw.WriteUInt32(m_materialInfo);
     bw.WriteUInt16(m_reference);
     bw.WriteUInt16(m_transformIndex);
     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);
 }
Exemple #8
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);
     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);
 }
Exemple #10
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteUInt16Array(bw, m_inputTrianglesSubset);
     s.WriteClassArray <hclMeshMeshDeformOperatorTriangleVertexPair>(bw, m_triangleVertexPairs);
     s.WriteUInt16Array(bw, m_triangleVertexStartForVertex);
     bw.WriteUInt32(m_inputBufferIdx);
     bw.WriteUInt32(m_outputBufferIdx);
     bw.WriteUInt16(m_startVertex);
     bw.WriteUInt16(m_endVertex);
     bw.WriteUInt32((uint)m_scaleNormalBehaviour);
     bw.WriteBoolean(m_deformNormals);
     bw.WriteBoolean(m_partialDeform);
     bw.WriteUInt32(0);
     bw.WriteUInt16(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.WriteClassArray <hkMemoryMeshShapeSection>(bw, m_sections);
     s.WriteUInt16Array(bw, m_indices16);
     s.WriteUInt32Array(bw, m_indices32);
     s.WriteStringPointer(bw, m_name);
 }
Exemple #13
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt32(m_inputBufferIdx);
     bw.WriteUInt32(m_outputTransformSetIdx);
     s.WriteClassArray <hclMeshBoneDeformOperatorTriangleBonePair>(bw, m_triangleBonePairs);
     s.WriteUInt16Array(bw, m_triangleBoneStartForBone);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteUInt16Array(bw, m_transformSubset);
     bw.WriteUInt32(m_outputBufferIndex);
     bw.WriteUInt32(m_transformSetIndex);
     m_boneSpaceDeformer.Write(s, bw);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteUInt16Array(bw, m_triangleIndices);
     bw.WriteBoolean(m_storeNormals);
     bw.WriteBoolean(m_storeTangentsAndBiTangents);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteVector4(bw, m_offset);
     s.WriteUInt16Array(bw, m_vertices);
     bw.WriteUInt16(m_reference);
     bw.WriteUInt16(m_transformIndex);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteVector4Array(bw, m_staticPositions);
     s.WriteVector4Array(bw, m_staticNormals);
     s.WriteVector4Array(bw, m_staticTangents);
     s.WriteVector4Array(bw, m_staticBiTangents);
     s.WriteUInt16Array(bw, m_triangleIndices);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteUInt16Array(bw, m_triangleIndices);
     bw.WriteBoolean(m_shadowPositions);
     bw.WriteBoolean(m_shadowNormals);
     bw.WriteBoolean(m_shadowTangents);
     bw.WriteBoolean(m_shadowBiTangents);
     bw.WriteUInt32(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt32(m_inputBufferIdx);
     bw.WriteUInt32(m_outputBufferIdx);
     bw.WriteUInt32((uint)m_scaleNormalBehaviour);
     bw.WriteUInt32(0);
     s.WriteUInt16Array(bw, m_inputTrianglesSubset);
     m_boneSpaceDeformer.Write(s, bw);
 }
Exemple #20
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     m_cells.Write(s, bw);
     bw.WriteInt32(m_bytesPerCells);
     bw.WriteInt32(m_cellsPerBlock);
     s.WriteByteArray(bw, m_pvs);
     s.WriteUInt16Array(bw, m_map);
     s.WriteClassArray <hkcdStaticPvsBlockHeader>(bw, m_blocks);
     bw.WriteUInt64(0);
 }
Exemple #21
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);
 }
Exemple #22
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteInt32(m_numPrimitiveKeys);
     bw.WriteInt32(m_bitsPerKey);
     bw.WriteUInt32(m_maxKeyValue);
     bw.WriteUInt32(0);
     s.WriteClassArray <hkcdStaticMeshTreeBaseSection>(bw, m_sections);
     s.WriteClassArray <hkcdStaticMeshTreeBasePrimitive>(bw, m_primitives);
     s.WriteUInt16Array(bw, m_sharedVerticesIndex);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassArray <hclSkinOperatorBoneInfluence>(bw, m_boneInfluences);
     s.WriteUInt16Array(bw, m_boneInfluenceStartPerVertex);
     s.WriteMatrix4Array(bw, m_boneFromSkinMeshTransforms);
     s.WriteUInt16Array(bw, m_usedBoneGroupIds);
     bw.WriteBoolean(m_skinPositions);
     bw.WriteBoolean(m_skinNormals);
     bw.WriteBoolean(m_skinTangents);
     bw.WriteBoolean(m_skinBiTangents);
     bw.WriteUInt32(m_inputBufferIndex);
     bw.WriteUInt32(m_outputBufferIndex);
     bw.WriteUInt32(m_transformSetIndex);
     bw.WriteUInt16(m_startVertex);
     bw.WriteUInt16(m_endVertex);
     bw.WriteBoolean(m_partialSkinning);
     bw.WriteBoolean(m_dualQuaternionSkinning);
     bw.WriteByte(m_boneGroupSize);
     bw.WriteByte(0);
 }
Exemple #24
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);
 }
Exemple #25
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);
 }
 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);
     bw.WriteUInt64(0);
     bw.WriteSByte(m_numBitsForChildShapeKey);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     s.WriteClassArray <hkpStaticCompoundShapeInstance>(bw, m_instances);
     s.WriteUInt16Array(bw, m_instanceExtraInfos);
     m_disabledLargeShapeKeyTable.Write(s, bw);
     bw.WriteUInt64(0);
     m_tree.Write(s, bw);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     s.WriteClassPointer <hclSetupMesh>(bw, m_parentSetupMesh);
     s.WriteVector4Array(bw, m_vertices);
     s.WriteVector4Array(bw, m_normals);
     s.WriteVector4Array(bw, m_tangents);
     s.WriteVector4Array(bw, m_bitangents);
     s.WriteClassArray <hclSetupMeshSectionTriangle>(bw, m_triangles);
     s.WriteClassPointerArray <hclStorageSetupMeshSectionSectionVertexChannel>(bw, m_sectionVertexChannels);
     s.WriteClassPointerArray <hclStorageSetupMeshSectionSectionEdgeSelectionChannel>(bw, m_sectionEdgeChannels);
     s.WriteClassPointerArray <hclStorageSetupMeshSectionSectionTriangleSelectionChannel>(bw, m_sectionTriangleChannels);
     s.WriteClassPointerArray <hclStorageSetupMeshSectionBoneInfluences>(bw, m_boneInfluences);
     s.WriteUInt16Array(bw, m_normalIDs);
 }
Exemple #29
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteUInt16Array(bw, m_tetrahedraGrid);
     s.WriteByteArray(bw, m_gridCells);
     s.WriteMatrix4Array(bw, m_tetrahedraEquations);
     bw.WriteUInt64(0);
     s.WriteTransform(bw, m_localFromWorld);
     s.WriteTransform(bw, m_worldFromLocal);
     m_objAabb.Write(s, bw);
     s.WriteVector4(bw, m_geomCentroid);
     s.WriteVector4(bw, m_invCellSize);
     bw.WriteUInt16(m_gridRes);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
 }
Exemple #30
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteVector4(bw, m_scaling);
     bw.WriteInt32(m_numBitsForSubpartIndex);
     bw.WriteUInt32(0);
     s.WriteClassArray <hkpMeshShapeSubpart>(bw, m_subparts);
     s.WriteUInt16Array(bw, m_weldingInfo);
     bw.WriteByte((byte)m_weldingType);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     bw.WriteSingle(m_radius);
     bw.WriteInt32(m_pad_0);
     bw.WriteInt32(m_pad_1);
     bw.WriteInt32(m_pad_2);
     bw.WriteUInt32(0);
 }