public override void UnParse(Stream stream) { var s = new BinaryStreamWrapper(stream, ByteOrder.BigEndian); s.Write(mFlags); s.Write(mDensity); s.Write(mComponentName, StringType.ZeroDelimited); s.Write(mStart); s.Write(mSourceType); s.Write(mSourceSize); mPreTransform.UnParse(stream); mSizeCurve.UnParse(stream); s.Write(mSizeVary); mPitchCurve.UnParse(stream); mRollCurve.UnParse(stream); mHeadingCurve.UnParse(stream); s.Write(mPitchVary); s.Write(mRollVary); s.Write(mHeadingVary); s.Write(mPitchOffset); s.Write(mRollOffset); s.Write(mHeadingOffset); mColorCurve.UnParse(stream); mColorVary.UnParse(stream); mAlphaCurve.UnParse(stream); s.Write(mAlphaVary); mSurfaces.UnParse(stream); s.Write(mEmitMapId); s.Write(mColorMapId); s.Write(mPinMapId); mAltitudeRange.UnParse(stream); mDrawInfo.UnParse(stream); s.Write(mOverrideSet); s.Write(mMessageId); }
public override void UnParse(Stream stream) { var s = new BinaryStreamWrapper(stream, ByteOrder.BigEndian); s.Write(mFlags); s.Write(mResourceId); s.Write(mSize); mColor.UnParse(stream); s.Write(mAlpha); mAnimationCurves.UnParse(stream); s.Write(mMaterialId); s.Write(mOverrideSet); }
public override void UnParse(Stream stream) { var s = new BinaryStreamWrapper(stream, ByteOrder.BigEndian); s.Write(Flags); ParticleParameters.UnParse(stream); mRateCurve.UnParse(stream); s.Write(mRateCurveTime); s.Write(mRateCurveCycles); s.Write(mRateSpeedScale); mSizeCurve.UnParse(stream); s.Write(mSizeVary); mAspectCurve.UnParse(stream); s.Write(mAspectVary); s.Write(mRotationVary); s.Write(mRotationOffset); mRotationCurve.UnParse(stream); mAlphaCurve.UnParse(stream); s.Write(mAlphaVary); mColorCurve.UnParse(stream); mColorVary.UnParse(stream); mDrawInfo.UnParse(stream); s.Write(mPhysicsType); s.Write(mOverrideSet); s.Write(mTileCountU); s.Write(mTileCountV); s.Write(mAlignMode); s.Write(mFrameSpeed); s.Write(mFrameStart); s.Write(mFrameCount); s.Write(mFrameRandom); mDirectionalForcesSum.UnParse(stream); s.Write(mWindStrength); s.Write(mGravityStrength); s.Write(mRadialForce); mRadialForceLocation.UnParse(stream); s.Write(mDrag); s.Write(mVelocityStretch); s.Write(mScrewRate); mWiggles.UnParse(stream); s.Write(mScreenBloomAlphaRate); s.Write(mScreenBloomAlphaBase); s.Write(mScreenBloomSizeRate); s.Write(mScreenBloomSizeBase); mLoopBoxColorCurve.UnParse(stream); mLoopBoxAlphaCurve.UnParse(stream); mSurfaces.UnParse(stream); s.Write(mMapBounce); s.Write(mMapRepulseHeight); s.Write(mMapRepulseStrength); s.Write(mMapRepulseScoutDistance); s.Write(mMapRepulseVertical); s.Write(mMapRepulseKillHeight); //-1000000000.0f s.Write(mProbabilityDeath); //0f mAltitudeRange.UnParse(stream); // (-10000.0f, 10000.0f) s.Write(mForceMapId); s.Write(mEmitRateMapId); s.Write(mEmitColorMapId); mRandomWalk.UnParse(stream); mAttractorOrigin.UnParse(stream); mAttractor.UnParse(stream); mPathPoints.UnParse(stream); //Version 2+ if (mSection.Version >= 0x0002) { mVector01.UnParse(stream); mVector3List01.UnParse(stream); } //Version 3+ if (mSection.Version >= 0x0003) { s.Write(mByte01); } //Version 4+ if (mSection.Version >= 0x0004) { s.Write(mFloat01); } //Version 5+ if (mSection.Version >= 0x0005) { if (isTheSims4) { mVector02.UnParse(stream); s.Write(mUnknown170); } else { s.Write(mVector02.X); } } if (isTheSims4) { //Version 6+ if (mSection.Version >= 0x0006) { mUnknown140.UnParse(stream); } else { s.Write(mUnknown140.X); } //Version 7+ if (mSection.Version >= 0x0007) { mUnknown150.UnParse(stream); } s.Write(mUnknown160); s.Write(mUnknown164); s.Write(mUnknown1C1); if (mUnknown1C1 != 0) { mUnknown180.UnParse(stream); s.Write(mUnknown1C0); if (mSection.Version >= 0x0006) { mUnknown190.UnParse(stream); } else { s.Write(mUnknown190.X); } if (mSection.Version >= 0x0007) { mUnknown1A0.UnParse(stream); } s.Write(mUnknown1B0); s.Write(mUnknown1B4); } if (mSection.Version >= 0x0006) { s.Write(mUnknown208); if (mUnknown208 != 0) { s.Write(mUnknown20C); s.Write(mUnknown209); s.Write(mUnknown20A); s.Write(mUnknown20B); } } } }
public override void UnParse(Stream stream) { var s = new BinaryStreamWrapper(stream, ByteOrder.BigEndian); s.Write(mFlags); mParticleParameters.UnParse(stream); mRateCurve.UnParse(stream); s.Write(mRateCurveTime); s.Write(mRateCurveCycles); mSizeCurve.UnParse(stream); s.Write(mSizeVary); mPitchCurve.UnParse(stream); mRollCurve.UnParse(stream); mHeadingCurve.UnParse(stream); s.Write(mPitchVary); s.Write(mRollVary); s.Write(mHeadingVary); s.Write(mPitchOffset); s.Write(mRollOffset); s.Write(mHeadingOffset); mColorCurve.UnParse(stream); mColorVary.UnParse(stream); mAlphaCurve.UnParse(stream); s.Write(mAlphaVary); s.Write(mComponentName, StringType.ZeroDelimited); s.Write(mComponentType, StringType.ZeroDelimited); s.Write(mAlignMode); mDirectionalForcesSum.UnParse(stream); mGlobalForcesSum.UnParse(stream); s.Write(mWindStrength); s.Write(mGravityStrength); s.Write(mRadialForce); mRadialForceLocation.UnParse(stream); s.Write(mDrag); s.Write(mScrewRate); mWiggles.UnParse(stream); s.Write(mScreenBloomAlphaRate); s.Write(mScreenBloomAlphaBase); s.Write(mScreenBloomSizeRate); s.Write(mScreenBloomSizeBase); mLoopBoxColorCurve.UnParse(stream); mLoopBoxAlphaCurve.UnParse(stream); mSurfaces.UnParse(stream); s.Write(mMapBounce); s.Write(mMapRepulseHeight); s.Write(mMapRepulseStrength); s.Write(mMapRepulseScoutDistance); s.Write(mMapRepulseVertical); s.Write(mMapRepulseKillHeight); s.Write(mProbabilityDeath); mAltitudeRange.UnParse(stream); s.Write(mForceMapId); s.Write(mEmitRateMapId); s.Write(mEmitColorMapId); mRandomWalk1.UnParse(stream); mRandomWalk2.UnParse(stream); mRandomWalkPreferredDirection.UnParse(stream); s.Write(mAlignDamping); s.Write(mBankAmount); s.Write(mBankRestore); mAttractorOrigin.UnParse(stream); mAttractor.UnParse(stream); mPathPoints.UnParse(stream); s.Write(mTractorResetSpeed); }