public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     bw.WriteSingle(m_data);
     bw.WriteSByte((sbyte)m_type);
     bw.WriteSByte((sbyte)m_operator);
     bw.WriteUInt16(0);
 }
Exemple #2
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteSingle(m_playbackSpeed);
     bw.WriteSByte((sbyte)m_mode);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     bw.WriteInt32(m_animId);
     bw.WriteInt32((int)m_animeEndEventType);
     m_endEvent.Write(s, bw);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteSingle(m_cropStartAmountLocalTime);
     bw.WriteSingle(m_cropEndAmountLocalTime);
     bw.WriteSingle(m_startTime);
     bw.WriteSingle(m_enforcedDuration);
     bw.WriteSByte(m_flags);
     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.WriteUInt16(0);
     bw.WriteByte(0);
 }
Exemple #3
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);
 }
 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);
 }
Exemple #5
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);
 }
Exemple #6
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     bw.WriteSByte(m_values_0);
     bw.WriteSByte(m_values_1);
     bw.WriteSByte(m_values_2);
     bw.WriteSByte(m_values_3);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteSByte(m_currentGeneratorIndex);
     bw.WriteSByte(m_generatorIndexAtActivate);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     s.WriteClassArray <hkbStateMachineActiveTransitionInfo>(bw, m_activeTransitions);
 }
Exemple #8
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteSByte(m_type);
     bw.WriteByte(0);
     bw.WriteSByte(m_objectQualityType);
     bw.WriteByte(0);
     bw.WriteUInt32(m_collisionFilterInfo);
 }
 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);
     bw.WriteSByte((sbyte)m_selfTransitionMode);
     bw.WriteSByte((sbyte)m_eventMode);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt16(0);
     bw.WriteSingle(m_cogWheelRadiusA);
     bw.WriteSingle(m_cogWheelRadiusB);
     bw.WriteBoolean(m_isScrew);
     bw.WriteSByte(m_memOffsetToInitialAngleOffset);
     bw.WriteSByte(m_memOffsetToPrevAngle);
     bw.WriteSByte(m_memOffsetToRevolutionCounter);
 }
Exemple #12
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteStringPointer(bw, m_filename);
     s.WriteByteArray(bw, m_data);
     bw.WriteSByte((sbyte)m_format);
     bw.WriteBoolean(m_hasMipMaps);
     bw.WriteSByte((sbyte)m_filterMode);
     bw.WriteSByte((sbyte)m_usageHint);
     bw.WriteInt32(m_textureCoordChannel);
 }
Exemple #13
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteStringPointer(bw, m_memberPath);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteInt32(m_variableIndex);
     bw.WriteSByte(m_bitIndex);
     bw.WriteSByte((sbyte)m_bindingType);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteSByte(m_fileType_0);
     bw.WriteSByte(m_fileType_1);
     bw.WriteSByte(m_fileType_2);
     bw.WriteSByte(m_fileType_3);
     bw.WriteUInt32(0);
     s.WriteByteArray(bw, m_data);
     s.WriteStringPointer(bw, m_name);
     s.WriteStringPointer(bw, m_originalFilename);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkbpTarget>(bw, m_targetIn);
     bw.WriteSingle(m_breakThreshold);
     bw.WriteInt16(m_ragdollBoneToConstrain);
     bw.WriteBoolean(m_breakable);
     bw.WriteSByte((sbyte)m_pivotPlacement);
     bw.WriteSByte((sbyte)m_boneToConstrainPlacement);
     bw.WriteSByte((sbyte)m_constraintType);
     bw.WriteBoolean(m_clearTargetData);
     bw.WriteBoolean(m_isConstraintHinge);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteSingle(m_timeInTransition);
     bw.WriteSingle(m_duration);
     bw.WriteSingle(m_effectiveBlendInDuration);
     bw.WriteSingle(m_effectiveBlendOutDuration);
     bw.WriteSByte((sbyte)m_toGeneratorState);
     bw.WriteBoolean(m_echoTransitionGenerator);
     bw.WriteSByte((sbyte)m_toGeneratorSelfTransitionMode);
     bw.WriteBoolean(m_justActivated);
     bw.WriteBoolean(m_updateActiveNodes);
     bw.WriteSByte((sbyte)m_stage);
     bw.WriteUInt16(0);
 }
 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);
 }
Exemple #18
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     bw.WriteBoolean(m_pinchDetectionEnabled);
     bw.WriteSByte(m_pinchDetectionPriority);
     bw.WriteUInt16(0);
     bw.WriteSingle(m_pinchDetectionRadius);
 }
Exemple #19
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkbHandle>(bw, m_handle);
     s.WriteVector4(bw, m_handlePositionOut);
     s.WriteQuaternion(bw, m_handleRotationOut);
     bw.WriteBoolean(m_isValidOut);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     bw.WriteSingle(m_extrapolationTimeStep);
     bw.WriteSingle(m_handleChangeSpeed);
     bw.WriteSByte((sbyte)m_handleChangeMode);
     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);
     bw.WriteByte(0);
 }
Exemple #20
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     s.WriteClassPointer <hknpVehicleData>(bw, m_data);
     s.WriteClassPointer <hknpVehicleDriverInput>(bw, m_driverInput);
     s.WriteClassPointer <hknpVehicleSteering>(bw, m_steering);
     s.WriteClassPointer <hknpVehicleEngine>(bw, m_engine);
     s.WriteClassPointer <hknpVehicleTransmission>(bw, m_transmission);
     s.WriteClassPointer <hknpVehicleBrake>(bw, m_brake);
     s.WriteClassPointer <hknpVehicleSuspension>(bw, m_suspension);
     s.WriteClassPointer <hknpVehicleAerodynamics>(bw, m_aerodynamics);
     s.WriteClassPointer <hknpVehicleWheelCollide>(bw, m_wheelCollide);
     s.WriteClassPointer <hknpTyremarksInfo>(bw, m_tyreMarks);
     s.WriteClassPointer <hknpVehicleVelocityDamper>(bw, m_velocityDamper);
     s.WriteClassArray <hknpVehicleInstanceWheelInfo>(bw, m_wheelsInfo);
     m_frictionStatus.Write(s, bw);
     s.WriteClassPointer <hknpVehicleDriverInputStatus>(bw, m_deviceStatus);
     s.WriteBooleanArray(bw, m_isFixed);
     bw.WriteSingle(m_wheelsTimeSinceMaxPedalInput);
     bw.WriteBoolean(m_tryingToReverse);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     bw.WriteSingle(m_torque);
     bw.WriteSingle(m_rpm);
     bw.WriteSingle(m_mainSteeringAngle);
     bw.WriteSingle(m_mainSteeringAngleAssumingNoReduction);
     s.WriteSingleArray(bw, m_wheelsSteeringAngle);
     bw.WriteBoolean(m_isReversing);
     bw.WriteSByte(m_currentGear);
     bw.WriteBoolean(m_delayed);
     bw.WriteByte(0);
     bw.WriteSingle(m_clutchDelayCountdown);
 }
Exemple #21
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     m_gains.Write(s, bw);
     s.WriteClassArray <hkbFootIkModifierLeg>(bw, m_legs);
     bw.WriteSingle(m_raycastDistanceUp);
     bw.WriteSingle(m_raycastDistanceDown);
     bw.WriteSingle(m_originalGroundHeightMS);
     bw.WriteSingle(m_errorOut);
     bw.WriteSingle(m_verticalOffset);
     bw.WriteUInt32(m_collisionFilterInfo);
     bw.WriteSingle(m_forwardAlignFraction);
     bw.WriteSingle(m_sidewaysAlignFraction);
     bw.WriteSingle(m_sidewaysSampleWidth);
     bw.WriteBoolean(m_useTrackData);
     bw.WriteBoolean(m_lockFeetWhenPlanted);
     bw.WriteBoolean(m_useCharacterUpVector);
     bw.WriteBoolean(m_keepSourceFootEndAboveGround);
     bw.WriteSByte((sbyte)m_alignMode);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     m_syncPoints_0.Write(s, bw);
     m_syncPoints_1.Write(s, bw);
     m_syncPoints_2.Write(s, bw);
     m_syncPoints_3.Write(s, bw);
     m_syncPoints_4.Write(s, bw);
     m_syncPoints_5.Write(s, bw);
     m_syncPoints_6.Write(s, bw);
     m_syncPoints_7.Write(s, bw);
     m_syncPoints_8.Write(s, bw);
     m_syncPoints_9.Write(s, bw);
     m_syncPoints_10.Write(s, bw);
     m_syncPoints_11.Write(s, bw);
     m_syncPoints_12.Write(s, bw);
     m_syncPoints_13.Write(s, bw);
     m_syncPoints_14.Write(s, bw);
     m_syncPoints_15.Write(s, bw);
     bw.WriteSingle(m_duration);
     bw.WriteSingle(m_localTime);
     bw.WriteSingle(m_playbackSpeed);
     bw.WriteSByte(m_numSyncPoints);
     bw.WriteBoolean(m_isCyclic);
     bw.WriteBoolean(m_isMirrored);
     bw.WriteBoolean(m_isAdditive);
     m_activeInterval.Write(s, bw);
 }
Exemple #23
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteVector4(bw, m_gravity);
     bw.WriteSByte(m_numWheels);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     s.WriteMatrix3(bw, m_chassisOrientation);
     bw.WriteSingle(m_torqueRollFactor);
     bw.WriteSingle(m_torquePitchFactor);
     bw.WriteSingle(m_torqueYawFactor);
     bw.WriteSingle(m_extraTorqueFactor);
     bw.WriteSingle(m_maxVelocityForPositionalFriction);
     bw.WriteSingle(m_chassisUnitInertiaYaw);
     bw.WriteSingle(m_chassisUnitInertiaRoll);
     bw.WriteSingle(m_chassisUnitInertiaPitch);
     bw.WriteSingle(m_frictionEqualizer);
     bw.WriteSingle(m_normalClippingAngleCos);
     bw.WriteSingle(m_maxFrictionSolverMassRatio);
     bw.WriteUInt32(0);
     s.WriteClassArray <hknpVehicleDataWheelComponentParams>(bw, m_wheelParams);
     s.WriteSByteArray(bw, m_numWheelsPerAxle);
     m_frictionDescription.Write(s, bw);
     s.WriteVector4(bw, m_chassisFrictionInertiaInvDiag);
     bw.WriteBoolean(m_alreadyInitialised);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(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()}");
                    }
                }
Exemple #25
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);
 }
Exemple #26
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkbpTarget>(bw, m_targetOut);
     bw.WriteSByte((sbyte)m_targetMode);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     bw.WriteInt32(m_sensingLayer);
     bw.WriteBoolean(m_targetOnlyOnce);
     bw.WriteBoolean(m_ignoreMySystemGroup);
     bw.WriteUInt16(0);
     bw.WriteSingle(m_maxTargetDistance);
     bw.WriteSingle(m_maxTargetHeightAboveSensor);
     bw.WriteSingle(m_closeToTargetDistanceThreshold);
     bw.WriteSByte((sbyte)m_targetAngleMode);
     bw.WriteSByte((sbyte)m_targetDistanceMode);
     bw.WriteUInt16(0);
     bw.WriteSingle(m_maxAngleToTarget);
     bw.WriteInt16(m_sensorRagdollBoneIndex);
     bw.WriteInt16(m_sensorAnimationBoneIndex);
     bw.WriteInt16(m_closeToTargetRagdollBoneIndex);
     bw.WriteInt16(m_closeToTargetAnimationBoneIndex);
     bw.WriteUInt64(0);
     s.WriteVector4(bw, m_sensorOffsetInBoneSpace);
     s.WriteVector4(bw, m_closeToTargetOffsetInBoneSpace);
     s.WriteVector4(bw, m_sensorDirectionBS);
     bw.WriteSByte((sbyte)m_eventMode);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     bw.WriteUInt32(m_sensingPropertyKey);
     bw.WriteBoolean(m_sensorInWS);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     m_eventToSend.Write(s, bw);
     m_eventToSendToTarget.Write(s, bw);
     m_closeToTargetEvent.Write(s, bw);
     bw.WriteBoolean(m_useVelocityPrediction);
     bw.WriteBoolean(m_targetOnlySpheres);
     bw.WriteBoolean(m_isCloseToTargetOut);
     bw.WriteSByte(m_targetPriority);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
 }
Exemple #27
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 virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     bw.WriteSByte((sbyte)m_responseType);
     bw.WriteByte(0);
     bw.WriteInt16(m_rollingFrictionMultiplier);
     bw.WriteSingle(m_friction);
     bw.WriteSingle(m_restitution);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteSByte((sbyte)m_type);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
 }
Exemple #30
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     bw.WriteUInt32(m_collisionFilterInfo);
     bw.WriteSByte((sbyte)m_type);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     m_shapeSetup.Write(s, bw);
 }