Exemplo n.º 1
0
            public override void UnParse(Stream stream)
            {
                var s = new BinaryStreamWrapper(stream, ByteOrder.BigEndian);

                mTimeRange.UnParse(stream);
                s.Write(mEffectName, StringType.ZeroDelimited);
            }
Exemplo n.º 2
0
        public override void UnParse(Stream stream)
        {
            var s = new BinaryStreamWrapper(stream, ByteOrder.BigEndian);

            s.Write(mFlags);
            s.Write(mDdsResource);
            s.Write(mByte01);
            s.Write(mInt01);
            s.Write(mByte02);
            if (isTheSims4)
            {
                s.Write(mInt02);
            }
            s.Write(mLifetime);
            mRotationCurve.UnParse(stream);
            mSizeCurve.UnParse(stream);
            mAlphaCurve.UnParse(stream);
            mColorCurve.UnParse(stream);
            mAspectCurve.UnParse(stream);
            s.Write(mAlphaVary);
            s.Write(mSizeVary);
            s.Write(mRotationVary);
            s.Write(mTextureRepeat);
            mTextureOffset.UnParse(stream);
            s.Write(mEmitColorMapId);
            if (mSection.Version >= 2)
            {
                s.Write(mByte03);                        //version 2+
            }
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
            public override void UnParse(Stream stream)
            {
                var s = new BinaryStreamWrapper(stream, ByteOrder.BigEndian);

                mLengthRange.UnParse(stream);
                mCurve.UnParse(stream);
                s.Write(mCurveVary);
                s.Write(mSpeedScale);
                s.Write(mChannelId);
                s.Write(mMode);
            }
Exemplo n.º 5
0
            public override void UnParse(Stream stream)
            {
                var s = new BinaryStreamWrapper(stream, ByteOrder.BigEndian);

                mTime.UnParse(stream);
                mStrength.UnParse(stream);
                s.Write(mTurnRange);
                s.Write(mTurnOffset);
                s.Write(mMix);
                mTurnOffsets.UnParse(stream);
                s.Write(mWalkLoopType);
            }
Exemplo n.º 6
0
        public override void UnParse(Stream stream)
        {
            var s = new BinaryStreamWrapper(stream, ByteOrder.BigEndian);

            s.Write(mFlags);
            s.Write(mComponentAppFlagsMask);
            s.Write(mNotifyMessageId);
            mScreenSizeRange.UnParse(stream);
            s.Write(mCursorActiveDistance);
            s.Write(mCursorButton);
            mLODDistances.UnParse(stream);
            mExtendedLODWeights.UnParse(stream);
            s.Write(mSeed);
            mDescriptions.UnParse(stream);
        }
Exemplo n.º 7
0
            public override void UnParse(Stream stream)
            {
                var s = new BinaryStreamWrapper(stream, ByteOrder.BigEndian);

                mParticleLifetime.UnParse(stream);
                s.Write(mPrerollTime);
                mEmitDelay.UnParse(stream);
                mEmitRetrigger.UnParse(stream);
                mEmitDirection.UnParse(stream);
                mEmitSpeed.UnParse(stream);
                mEmitVolume.UnParse(stream);
                if (bHasTorus)
                {
                    s.Write(mEmitTorusWidth);
                }
            }
Exemplo n.º 8
0
        public override void UnParse(Stream stream)
        {
            var s = new BinaryStreamWrapper(stream, ByteOrder.BigEndian);

            s.Write(mFlags);
            mRibbonLifetime.UnParse(stream);
            mOffsetCurve.UnParse(stream);
            mWidthCurve.UnParse(stream);
            s.Write(mTaper);
            s.Write(mFade);
            s.Write(mAlphaDecay);
            mColorCurve.UnParse(stream);
            mAlphaCurve.UnParse(stream);
            mLengthColorCurve.UnParse(stream);
            mLengthAlphaCurve.UnParse(stream);
            mEdgeColorCurve.UnParse(stream);
            mEdgeAlphaCurve.UnParse(stream);
            mStartEdgeAlphaCurve.UnParse(stream);
            mEndEdgeAlphaCurve.UnParse(stream);
            s.Write(mSegmentCount);
            s.Write(mSegmentLength);
            mDrawInfo.UnParse(stream);
            s.Write(mTileUV);
            s.Write(mSlipCurveSpeed);
            s.Write(mSlipUVSpeed);

            if (mSection.Version >= 0x0002)
            {
                s.Write(mUVRepeat);
            }

            mDirectionalForcesSum.UnParse(stream);

            s.Write(mWindStrength);
            s.Write(mGravityStrength);
            s.Write(mEmitColorMapId);
            s.Write(mForceMapId);
            s.Write(mMapRepulseStrength);
        }
Exemplo n.º 9
0
        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);
                    }
                }
            }
        }
Exemplo n.º 10
0
        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);
        }