Exemple #1
0
 public void Clone(MaleWigProperties fwp)
 {
     this.wigColor             = new float[] { fwp.wigColor[0], fwp.wigColor[1], fwp.wigColor[2], fwp.wigColor[3] };
     this.imgName              = fwp.imgName;
     this.finalImageUrl        = fwp.finalImageUrl;
     this.wearingCode          = fwp.wearingCode;
     this.mfType               = fwp.mfType;
     this.finalSavePath        = fwp.finalSavePath;
     this.lockStatus           = fwp.lockStatus;
     this.serializedJsonObject = fwp.serializedJsonObject;
     this.gameController       = fwp.gameController;
     this.mo = fwp.mo;
 }
Exemple #2
0
    public void DecodeData(out MaleWigProperties maleWigProperty, out MaleTieProperties maleTieProperty, out bool malePresent)
    {
        malePresent = maleIsShowing;
        if (maleIsShowing)
        {
            if (isWearingWig)
            {
                maleWigProperty = new MaleWigProperties
                {
                    wearingCode          = 5,
                    mfType               = 2,
                    imgName              = maleWigName,
                    finalImageUrl        = finalMaleWigImageUrl,
                    finalSavePath        = finalMaleWigSavePath,
                    serializedJsonObject = serializedMaleWigProperty,
                };
            }
            else
            {
                maleWigProperty = null;
            }


            if (isWearingTie)
            {
                maleTieProperty = new MaleTieProperties
                {
                    wearingCode          = 6,
                    mfType               = 2,
                    imgName              = maleTieName,
                    finalImageUrl        = finalMaleTieImageUrl,
                    finalSavePath        = finalMaleTieSavePath,
                    serializedJsonObject = serializedMaleTieProperty,
                };
            }
            else
            {
                maleTieProperty = null;
            }
        }
        else
        {
            maleWigProperty = null;
            maleTieProperty = null;
            return;
        }
    }