Exemple #1
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     s.WriteTransform(bw, m_transformA);
     s.WriteTransform(bw, m_transformB);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteVector4Array(bw, m_planeEquations);
     bw.WriteUInt64(0);
     s.WriteTransform(bw, m_localFromWorld);
     s.WriteTransform(bw, m_worldFromLocal);
     m_objAabb.Write(s, bw);
     s.WriteVector4(bw, m_geomCentroid);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     m_atoms.Write(s, bw);
     s.WriteClassPointer <hkpParametricCurve>(bw, m_path);
     bw.WriteSingle(m_maxFrictionForce);
     bw.WriteSByte((sbyte)m_angularConstrainedDOF);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     s.WriteTransform(bw, m_transform_OS_KS_0);
     s.WriteTransform(bw, m_transform_OS_KS_1);
 }
 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 virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteTransform(bw, m_transform);
     bw.WriteInt32(m_flags);
     bw.WriteUInt32(m_collisionFilterInfo);
     s.WriteClassPointer <hknpShape>(bw, m_shape);
     m_aabb.Write(s, bw);
     bw.WriteUInt32(m_id);
     bw.WriteUInt32(m_nextAttachedBodyId);
     bw.WriteUInt32(m_motionId);
     bw.WriteUInt32(m_broadPhaseId);
     bw.WriteUInt16(m_materialId);
     bw.WriteByte(m_qualityId);
     bw.WriteByte(m_timAngle);
     bw.WriteUInt16(m_maxTimDistance);
     bw.WriteUInt16(m_maxContactDistance);
     bw.WriteUInt32(m_indexIntoActiveListOrDeactivatedIslandId);
     bw.WriteInt16(m_radiusOfComCenteredBoundingSphere);
     bw.WriteByte(m_spuFlags);
     bw.WriteByte(m_shapeSizeDiv16);
     bw.WriteInt16(m_motionToBodyRotation_0);
     bw.WriteInt16(m_motionToBodyRotation_1);
     bw.WriteInt16(m_motionToBodyRotation_2);
     bw.WriteInt16(m_motionToBodyRotation_3);
     bw.WriteUInt64(m_userData);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     m_aabb.Write(s, bw);
     s.WriteClassPointer <hknpShape>(bw, m_shape);
     bw.WriteUInt64(0);
     s.WriteTransform(bw, m_transform);
     s.WriteVector4(bw, m_to);
 }
Exemple #7
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 #8
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     s.WriteClassPointer <hkpShape>(bw, m_shape);
     s.WriteTransform(bw, m_shapeTransform);
     m_geometry.Write(s, bw);
 }
Exemple #9
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     m_childShape.Write(s, bw);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     s.WriteQuaternion(bw, m_rotation);
     s.WriteTransform(bw, m_transform);
 }
 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);
 }
Exemple #11
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteTransform(bw, m_worldFromShape);
     bw.WriteBoolean(m_isHierarchicalCompound);
     bw.WriteBoolean(m_hasDestructionShapes);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
 }
Exemple #12
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkpShape>(bw, m_shape);
     bw.WriteBoolean(m_isHierarchicalCompound);
     bw.WriteBoolean(m_hkdShapesCollected);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     s.WriteStringPointerArray(bw, m_childShapeNames);
     s.WriteTransformArray(bw, m_childTransforms);
     s.WriteTransform(bw, m_transform);
 }
Exemple #13
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteStringPointer(bw, m_name);
     bw.WriteUInt64(0);
     s.WriteTransform(bw, m_transform);
     s.WriteVector4(bw, m_linearVelocity);
     s.WriteVector4(bw, m_angularVelocity);
     bw.WriteBoolean(m_pinchDetectionEnabled);
     bw.WriteSByte(m_pinchDetectionPriority);
     bw.WriteUInt16(0);
     bw.WriteSingle(m_pinchDetectionRadius);
     s.WriteClassPointer <hclShape>(bw, m_shape);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteBoolean(m_useSpheres);
     bw.WriteBoolean(m_useBoundaries);
     bw.WriteBoolean(m_clipBoundaries);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteByte(0);
     s.WriteTransform(bw, m_transform);
     s.WriteClassArray <hkaiAvoidanceSolverSphereObstacle>(bw, m_spheres);
     s.WriteClassArray <hkaiAvoidanceSolverBoundaryObstacle>(bw, m_boundaries);
     bw.WriteUInt64(m_userData);
     bw.WriteUInt64(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt16(m_res);
     bw.WriteUInt16(m_resIncBorder);
     bw.WriteUInt32(0);
     s.WriteVector4(bw, m_floatCorrectionOffset);
     s.WriteByteArray(bw, m_heights);
     bw.WriteInt32(m_faces_0);
     bw.WriteInt32(m_faces_1);
     bw.WriteInt32(m_faces_2);
     bw.WriteInt32(m_faces_3);
     bw.WriteInt32(m_faces_4);
     bw.WriteInt32(m_faces_5);
     bw.WriteUInt64(0);
     s.WriteTransform(bw, m_localToMapTransform);
     s.WriteVector4(bw, m_localToMapScale);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteTransform(bw, m_transform);
     s.WriteVector4(bw, m_sweptTransform_0);
     s.WriteVector4(bw, m_sweptTransform_1);
     s.WriteVector4(bw, m_sweptTransform_2);
     s.WriteVector4(bw, m_sweptTransform_3);
     s.WriteVector4(bw, m_sweptTransform_4);
     s.WriteVector4(bw, m_deltaAngle);
     bw.WriteSingle(m_objectRadius);
     bw.WriteInt16(m_linearDamping);
     bw.WriteInt16(m_angularDamping);
     bw.WriteInt16(m_timeFactor);
     m_maxLinearVelocity.Write(s, bw);
     m_maxAngularVelocity.Write(s, bw);
     bw.WriteByte(m_deactivationClass);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteTransform(bw, m_transform);
     s.WriteVector4(bw, m_scale);
     s.WriteClassPointer <hknpShape>(bw, m_shape);
     bw.WriteUInt16(m_shapeTag);
     bw.WriteUInt16(m_destructionTag);
     bw.WriteByte(m_padding_0);
     bw.WriteByte(m_padding_1);
     bw.WriteByte(m_padding_2);
     bw.WriteByte(m_padding_3);
     bw.WriteByte(m_padding_4);
     bw.WriteByte(m_padding_5);
     bw.WriteByte(m_padding_6);
     bw.WriteByte(m_padding_7);
     bw.WriteByte(m_padding_8);
     bw.WriteByte(m_padding_9);
     bw.WriteByte(m_padding_10);
     bw.WriteByte(m_padding_11);
     bw.WriteByte(m_padding_12);
     bw.WriteByte(m_padding_13);
     bw.WriteByte(m_padding_14);
     bw.WriteByte(m_padding_15);
     bw.WriteByte(m_padding_16);
     bw.WriteByte(m_padding_17);
     bw.WriteByte(m_padding_18);
     bw.WriteByte(m_padding_19);
     bw.WriteByte(m_padding_20);
     bw.WriteByte(m_padding_21);
     bw.WriteByte(m_padding_22);
     bw.WriteByte(m_padding_23);
     bw.WriteByte(m_padding_24);
     bw.WriteByte(m_padding_25);
     bw.WriteByte(m_padding_26);
     bw.WriteByte(m_padding_27);
     bw.WriteByte(m_padding_28);
     bw.WriteByte(m_padding_29);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteTransform(bw, m_transform);
     s.WriteVector4(bw, m_halfExtents);
 }
Exemple #19
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteTransform(bw, m_transform);
 }
Exemple #20
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteTransform(bw, m_transform);
     s.WriteVector4(bw, m_linearVelocity);
     s.WriteVector4(bw, m_angularVelocity);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteClassPointer <hkpRigidBody>(bw, m_rb);
     bw.WriteUInt64(0);
     s.WriteTransform(bw, m_localToDisplay);
 }