public override void Write(PackFileSerializer s, BinaryWriterEx bw) { base.Write(s, bw); bw.WriteInt16(m_restitution); bw.WriteInt16(m_friction); bw.WriteUInt64(m_userData); }
public virtual void Write(PackFileSerializer s, BinaryWriterEx bw) { bw.WriteUInt32(m_isExclusive); bw.WriteUInt32(m_flags); bw.WriteSingle(m_gravityFactor); bw.WriteSingle(m_timeFactor); bw.WriteSingle(m_maxLinearSpeed); bw.WriteSingle(m_maxAngularSpeed); bw.WriteSingle(m_linearDamping); bw.WriteSingle(m_angularDamping); bw.WriteSingle(m_solverStabilizationSpeedThreshold); bw.WriteSingle(m_solverStabilizationSpeedReduction); bw.WriteSingle(m_maxDistSqrd); bw.WriteSingle(m_maxRotSqrd); bw.WriteSingle(m_invBlockSize); bw.WriteInt16(m_pathingUpperThreshold); bw.WriteInt16(m_pathingLowerThreshold); bw.WriteByte(m_numDeactivationFrequencyPasses); bw.WriteByte(m_deactivationVelocityScaleSquare); bw.WriteByte(m_minimumPathingVelocityScaleSquare); bw.WriteByte(m_spikingVelocityScaleThresholdSquared); bw.WriteByte(m_minimumSpikingVelocityScaleSquared); bw.WriteUInt16(0); bw.WriteByte(0); }
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) { s.WriteStringPointer(bw, m_name); bw.WriteInt16(m_startBoneIndex); bw.WriteInt16(m_numBones); bw.WriteUInt32(0); }
public virtual void Write(PackFileSerializer s, BinaryWriterEx bw) { bw.WriteInt16(m_values_0); bw.WriteInt16(m_values_1); bw.WriteInt16(m_values_2); bw.WriteInt16(m_values_3); }
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 override void Write(PackFileSerializer s, BinaryWriterEx bw) { base.Write(s, bw); bw.WriteUInt64(0); s.WriteVector4(bw, m_targetWS); s.WriteVector4(bw, m_headForwardLS); s.WriteVector4(bw, m_neckForwardLS); s.WriteVector4(bw, m_neckRightLS); s.WriteVector4(bw, m_eyePositionHS); bw.WriteSingle(m_newTargetGain); bw.WriteSingle(m_onGain); bw.WriteSingle(m_offGain); bw.WriteSingle(m_limitAngleDegrees); bw.WriteSingle(m_limitAngleLeft); bw.WriteSingle(m_limitAngleRight); bw.WriteSingle(m_limitAngleUp); bw.WriteSingle(m_limitAngleDown); bw.WriteInt16(m_headIndex); bw.WriteInt16(m_neckIndex); bw.WriteBoolean(m_isOn); bw.WriteBoolean(m_individualLimitsOn); bw.WriteBoolean(m_isTargetInsideLimitCone); bw.WriteByte(0); bw.WriteInt16(m_SensingAngle); bw.WriteUInt64(0); bw.WriteUInt64(0); bw.WriteUInt64(0); bw.WriteUInt64(0); bw.WriteUInt64(0); bw.WriteUInt64(0); bw.WriteUInt32(0); bw.WriteUInt16(0); }
public virtual void Write(PackFileSerializer s, BinaryWriterEx bw) { bw.WriteInt16(m_poseMatchingBone0); bw.WriteInt16(m_poseMatchingBone1); bw.WriteInt16(m_poseMatchingBone2); bw.WriteSByte((sbyte)m_mode); bw.WriteByte(0); }
public override void Write(PackFileSerializer s, BinaryWriterEx bw) { base.Write(s, bw); bw.WriteInt16(m_currentGeneratorIndex); bw.WriteInt16(m_generatorIndexAtActivate); bw.WriteUInt32(0); s.WriteClassArray <hkbStateMachineActiveTransitionInfo>(bw, m_activeTransitions); }
public virtual void Write(PackFileSerializer s, BinaryWriterEx bw) { bw.WriteInt16(m_boneA); bw.WriteInt16(m_boneB); bw.WriteUInt64(0); bw.WriteUInt32(0); s.WriteQSTransform(bw, m_aFromBTransform); }
public override void Write(PackFileSerializer s, BinaryWriterEx bw) { base.Write(s, bw); bw.WriteInt16(m_poseMatchingRootBoneIndex); bw.WriteInt16(m_poseMatchingOtherBoneIndex); bw.WriteInt16(m_poseMatchingAnotherBoneIndex); bw.WriteUInt16(0); }
public virtual void Write(PackFileSerializer s, BinaryWriterEx bw) { s.WriteVector4(bw, m_targetOrSensingPosition); s.WriteVector4(bw, m_targetBackHandNormal); bw.WriteSingle(m_sensingRadius); bw.WriteInt16(m_boneIndex); bw.WriteInt16(m_handIkTrackIndex); bw.WriteUInt64(0); }
public virtual void Write(PackFileSerializer s, BinaryWriterEx bw) { bw.WriteInt32(m_startEdgeIndex); bw.WriteInt32(m_startUserEdgeIndex); bw.WriteInt16(m_numEdges); bw.WriteInt16(m_numUserEdges); bw.WriteInt16(m_clusterIndex); bw.WriteUInt16(m_padding); }
public override void Write(PackFileSerializer s, BinaryWriterEx bw) { base.Write(s, bw); s.WriteClassPointer <hkbHandle>(bw, m_handleOut); s.WriteStringPointer(bw, m_localFrameName); bw.WriteInt16(m_ragdollBoneIndex); bw.WriteInt16(m_animationBoneIndex); bw.WriteUInt32(0); }
public override void Write(PackFileSerializer s, BinaryWriterEx bw) { base.Write(s, bw); bw.WriteInt16(m_poseMatchingBone0); bw.WriteInt16(m_poseMatchingBone1); bw.WriteInt16(m_poseMatchingBone2); bw.WriteBoolean(m_enableComputeWorldFromModel); bw.WriteByte(0); }
public virtual void Write(PackFileSerializer s, BinaryWriterEx bw) { bw.WriteInt16(m_startBoneIndex); bw.WriteInt16(m_endBoneIndex); bw.WriteSingle(m_targetRotationRate); bw.WriteSingle(m_newTargetGain); bw.WriteSingle(m_onGain); bw.WriteSingle(m_offGain); bw.WriteUInt32(0); }
public override void WriteInner(BinaryWriterEx bw) { bw.WriteUInt16((ushort)CutsceneEntityType); bw.WriteInt16(CutsceneEntityIDPart1); bw.WriteInt16(CutsceneEntityIDPart2); bw.WriteSByte(Block); bw.WriteSByte(Area); bw.WriteInt32(0); bw.WriteInt32(0); }
public override void Write(PackFileSerializer s, BinaryWriterEx bw) { base.Write(s, bw); m_closeToGroundEvent.Write(s, bw); bw.WriteSingle(m_closeToGroundHeight); bw.WriteSingle(m_raycastDistanceDown); bw.WriteUInt32(m_collisionFilterInfo); bw.WriteInt16(m_boneIndex); bw.WriteInt16(m_animBoneIndex); bw.WriteUInt64(0); }
public override void Write(PackFileSerializer s, BinaryWriterEx bw) { base.Write(s, bw); s.WriteClassArray <hkbBlenderGeneratorChildInternalState>(bw, m_childrenInternalStates); s.WriteInt16Array(bw, m_sortedChildren); bw.WriteSingle(m_endIntervalWeight); bw.WriteInt32(m_numActiveChildren); bw.WriteInt16(m_beginIntervalIndex); bw.WriteInt16(m_endIntervalIndex); bw.WriteBoolean(m_initSync); bw.WriteBoolean(m_doSubtractiveBlend); bw.WriteUInt16(0); }
public virtual void Write(PackFileSerializer s, BinaryWriterEx bw) { bw.WriteUInt32(m_boneMask_0); bw.WriteUInt32(m_boneMask_1); bw.WriteUInt32(m_boneMask_2); bw.WriteUInt32(m_boneMask_3); bw.WriteUInt32(m_boneMask_4); bw.WriteUInt32(m_boneMask_5); bw.WriteUInt32(m_boneMask_6); bw.WriteUInt32(m_boneMask_7); bw.WriteUInt32(m_partitionMask_0); bw.WriteInt16(m_numBones); bw.WriteInt16(m_numMaxPartitions); }
public virtual void Write(PackFileSerializer s, BinaryWriterEx bw) { s.WriteStringPointer(bw, m_name); bw.WriteUInt32(m_isExclusive); bw.WriteInt32(m_flags); bw.WriteByte((byte)m_triggerType); m_triggerManifoldTolerance.Write(s, bw); bw.WriteInt16(m_dynamicFriction); bw.WriteInt16(m_staticFriction); bw.WriteInt16(m_restitution); bw.WriteByte((byte)m_frictionCombinePolicy); bw.WriteByte((byte)m_restitutionCombinePolicy); bw.WriteInt16(m_weldingTolerance); bw.WriteSingle(m_maxContactImpulse); bw.WriteSingle(m_fractionOfClippedImpulseToApply); bw.WriteByte((byte)m_massChangerCategory); bw.WriteByte(0); bw.WriteInt16(m_massChangerHeavyObjectFactor); bw.WriteInt16(m_softContactForceFactor); bw.WriteInt16(m_softContactDampFactor); m_softContactSeperationVelocity.Write(s, bw); bw.WriteUInt16(0); bw.WriteByte(0); s.WriteClassPointer <hknpSurfaceVelocity>(bw, m_surfaceVelocity); bw.WriteInt16(m_disablingCollisionsBetweenCvxCvxDynamicObjectsDistance); bw.WriteUInt32(0); bw.WriteUInt16(0); bw.WriteUInt64(m_userData); bw.WriteBoolean(m_isShared); bw.WriteUInt32(0); bw.WriteUInt16(0); bw.WriteByte(0); }
public virtual void Write(PackFileSerializer s, BinaryWriterEx bw) { m_triggerInterval.Write(s, bw); m_initiateInterval.Write(s, bw); s.WriteClassPointer <hkbTransitionEffect>(bw, m_transition); s.WriteClassPointer <hkbCondition>(bw, m_condition); bw.WriteInt32(m_eventId); bw.WriteInt32(m_toStateId); bw.WriteInt32(m_fromNestedStateId); bw.WriteInt32(m_toNestedStateId); bw.WriteInt16(m_priority); bw.WriteInt16(m_flags); bw.WriteUInt32(0); }
public override void Write(PackFileSerializer s, BinaryWriterEx bw) { base.Write(s, bw); bw.WriteUInt64(0); s.WriteVector4(bw, m_groundNormal); bw.WriteSingle(m_duration); bw.WriteSingle(m_alignWithGroundDuration); bw.WriteInt16(m_rootBoneIndex); bw.WriteInt16(m_otherBoneIndex); bw.WriteInt16(m_anotherBoneIndex); bw.WriteUInt64(0); bw.WriteUInt64(0); bw.WriteUInt16(0); }
public virtual void Write(PackFileSerializer s, BinaryWriterEx bw) { bw.WriteUInt16(m_flags); bw.WriteUInt16(m_biNormalAxis); bw.WriteInt16(m_rollingFrictionMultiplier); bw.WriteInt16(m_internalData1); bw.WriteInt16(m_rhsRolling_0); bw.WriteInt16(m_rhsRolling_1); bw.WriteSingle(m_contactRadius); bw.WriteSingle(m_data_0); bw.WriteSingle(m_data_1); bw.WriteSingle(m_data_2); bw.WriteSingle(m_data_3); }
public override void Write(PackFileSerializer s, BinaryWriterEx bw) { base.Write(s, bw); s.WriteClassPointer <hkReferencedObject>(bw, m_complexTypeHkObjectPtr); bw.WriteBoolean(m_complexHiddenTypeCopyStart); bw.WriteUInt32(0); bw.WriteUInt16(0); bw.WriteByte(0); s.WriteQuaternion(bw, m_complexTypeHkQuaternion); s.WriteVector4(bw, m_complexTypeHkVector4); bw.WriteSByte((sbyte)m_complexTypeEnumHkInt8); bw.WriteByte(0); bw.WriteInt16((short)m_complexTypeEnumHkInt16); bw.WriteInt32((int)m_complexTypeEnumHkInt32); bw.WriteByte((byte)m_complexTypeEnumHkUint8); bw.WriteByte(0); bw.WriteUInt16((ushort)m_complexTypeEnumHkUint16); bw.WriteUInt32((uint)m_complexTypeEnumHkUint32); bw.WriteSByte((sbyte)m_complexTypeEnumHkInt8InvalidCheck); bw.WriteByte(0); bw.WriteInt16((short)m_complexTypeEnumHkInt16InvalidCheck); bw.WriteInt32((int)m_complexTypeEnumHkInt32InvalidCheck); bw.WriteByte((byte)m_complexTypeEnumHkUint8InvalidCheck); bw.WriteByte(0); bw.WriteUInt16((ushort)m_complexTypeEnumHkUint16InvalidCheck); bw.WriteUInt32((uint)m_complexTypeEnumHkUint32InvalidCheck); bw.WriteSByte(m_complexTypeFlagsHkInt8); bw.WriteByte(0); bw.WriteInt16(m_complexTypeFlagsHkInt16); bw.WriteInt32(m_complexTypeFlagsHkInt32); bw.WriteByte(m_complexTypeFlagsHkUint8); bw.WriteByte(0); bw.WriteUInt16(m_complexTypeFlagsHkUint16); bw.WriteUInt32(m_complexTypeFlagsHkUint32); bw.WriteSByte(m_complexTypeFlagsHkInt8InvalidCheck); bw.WriteByte(0); bw.WriteInt16(m_complexTypeFlagsHkInt16InvalidCheck); bw.WriteInt32(m_complexTypeFlagsHkInt32InvalidCheck); bw.WriteByte(m_complexTypeFlagsHkUint8InvalidCheck); bw.WriteByte(0); bw.WriteUInt16(m_complexTypeFlagsHkUint16InvalidCheck); bw.WriteUInt32(m_complexTypeFlagsHkUint32InvalidCheck); bw.WriteBoolean(m_complexHiddenTypeCopyEnd); bw.WriteUInt64(0); bw.WriteUInt32(0); bw.WriteUInt16(0); bw.WriteByte(0); }
public override void Write(PackFileSerializer s, BinaryWriterEx bw) { base.Write(s, bw); bw.WriteInt32(m_ModifierID); bw.WriteSByte((sbyte)m_rotationAxisType); bw.WriteUInt16(0); bw.WriteByte(0); bw.WriteInt32(m_SensingDummyPoly); bw.WriteUInt32(0); s.WriteClassArray <CustomLookAtTwistModifierTwistParam>(bw, m_twistParam); bw.WriteSingle(m_UpLimitAngle); bw.WriteSingle(m_DownLimitAngle); bw.WriteSingle(m_RightLimitAngle); bw.WriteSingle(m_LeftLimitAngle); bw.WriteSingle(m_UpMinimumAngle); bw.WriteSingle(m_DownMinimumAngle); bw.WriteSingle(m_RightMinimumAngle); bw.WriteSingle(m_LeftMinimumAngle); bw.WriteInt16(m_SensingAngle); bw.WriteSByte((sbyte)m_setAngleMethod); bw.WriteBoolean(m_isAdditive); bw.WriteUInt64(0); bw.WriteUInt64(0); bw.WriteUInt64(0); bw.WriteUInt64(0); bw.WriteUInt32(0); }
internal void WriteValue(BinaryWriterEx bw, object value) { switch (Type) { case ParamType.aob: bw.WriteBytes((byte[])value); break; case ParamType.b: bw.WriteBoolean((bool)value); break; case ParamType.u8: case ParamType.x8: bw.WriteByte((byte)value); break; case ParamType.s8: bw.WriteSByte((sbyte)value); break; case ParamType.u16: case ParamType.x16: bw.WriteUInt16((ushort)value); break; case ParamType.s16: bw.WriteInt16((short)value); break; case ParamType.u32: case ParamType.x32: bw.WriteUInt32((uint)value); break; case ParamType.s32: bw.WriteInt32((int)value); break; case ParamType.u64: case ParamType.x64: bw.WriteUInt64((ulong)value); break; case ParamType.s64: bw.WriteInt64((long)value); break; case ParamType.f32: bw.WriteSingle((float)value); break; case ParamType.f64: bw.WriteDouble((double)value); break; default: throw new Exception($"Invalid ParamTemplate ParamType: {Type.ToString()}"); } }
public override void Write(PackFileSerializer s, BinaryWriterEx bw) { base.Write(s, bw); bw.WriteSingle(m_duration); bw.WriteSingle(m_toGeneratorStartTimeFraction); bw.WriteUInt16(m_flags); bw.WriteSByte((sbyte)m_endMode); bw.WriteSByte((sbyte)m_blendCurve); bw.WriteInt16(m_alignmentBone); 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); bw.WriteUInt64(0); bw.WriteUInt64(0); bw.WriteUInt64(0); bw.WriteUInt64(0); bw.WriteUInt16(0); }
public virtual void Write(PackFileSerializer s, BinaryWriterEx bw) { s.WriteClassPointer <hkLocalFrame>(bw, m_localFrame); bw.WriteInt16(m_boneIndex); bw.WriteUInt32(0); bw.WriteUInt16(0); }
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); }