public void UnParse(Stream s)
            {
                var bw = new BinaryWriter(s);

                mAgeGenderFlags.UnParse(s);
                bw.Write(mEdgeColour.ToArgb());
                bw.Write(mSpecularColour.ToArgb());
                bw.Write(mSpecularPower);
                bw.Write(mIsGenetic);
            }
Beispiel #2
0
            public void UnParse(Stream s)
            {
                var bw = new BinaryWriter(s);

                mAgeGenderFlags.UnParse(s);
                bw.Write(mIsGenetic);
                bw.Write(mDiffuseColour.ToArgb());
                bw.Write(mRootColour.ToArgb());
                bw.Write(mHighlightColour.ToArgb());
                bw.Write(mTipColour.ToArgb());
                bw.Write(mHaloHighColour.ToArgb());
                bw.Write(mHaloLowColour.ToArgb());
                bw.Write(mHaloBlur);
            }
            public void UnParse(Stream s, ResourceKeyTable keys)
            {
                var bw = new BinaryWriter(s);

                mAgeGenderFlags.UnParse(s);
                bw.Write((UInt32)mTypeFlags);
                bw.Write(keys.Add(mSpecularKey));
                bw.Write(keys.Add(mDetailDarkKey));
                bw.Write(keys.Add(mDetailLightKey));
                bw.Write(keys.Add(mNormalMapKey));
                bw.Write(keys.Add(mOverlayKey));
                if (mOwner.Version >= 6)
                {
                    bw.Write(keys.Add(mMuscleNormalMapKey));
                    bw.Write(keys.Add(mCleavageNormalMapKey));
                }
            }