コード例 #1
0
        public void SetStatusBytes(byte[] data)
        {
            ChaFileStatus src = (ChaFileStatus)MessagePackSerializer.Deserialize <ChaFileStatus>(data);

            src.ComplementWithVersion();
            this.status.Copy(src);
        }
コード例 #2
0
 public ChaFile()
 {
     this.custom            = new ChaFileCustom();
     this.coordinate        = new ChaFileCoordinate();
     this.parameter         = new ChaFileParameter();
     this.gameinfo          = new ChaFileGameInfo();
     this.status            = new ChaFileStatus();
     this.lastLoadErrorCode = 0;
 }
コード例 #3
0
 public void Copy(ChaFileStatus src)
 {
     this.clothesState          = src.clothesState;
     this.showAccessory         = src.showAccessory;
     this.eyebrowPtn            = src.eyebrowPtn;
     this.eyebrowOpenMax        = src.eyebrowOpenMax;
     this.eyesPtn               = src.eyesPtn;
     this.eyesOpenMax           = src.eyesOpenMax;
     this.eyesBlink             = src.eyesBlink;
     this.eyesYure              = src.eyesYure;
     this.mouthPtn              = src.mouthPtn;
     this.mouthOpenMin          = src.mouthOpenMin;
     this.mouthOpenMax          = src.mouthOpenMax;
     this.mouthFixed            = src.mouthFixed;
     this.mouthAdjustWidth      = src.mouthAdjustWidth;
     this.tongueState           = src.tongueState;
     this.eyesLookPtn           = src.eyesLookPtn;
     this.eyesTargetType        = src.eyesTargetType;
     this.eyesTargetAngle       = src.eyesTargetAngle;
     this.eyesTargetRange       = src.eyesTargetRange;
     this.eyesTargetRate        = src.eyesTargetRate;
     this.neckLookPtn           = src.neckLookPtn;
     this.neckTargetType        = src.neckTargetType;
     this.neckTargetAngle       = src.neckTargetAngle;
     this.neckTargetRange       = src.neckTargetRange;
     this.neckTargetRate        = src.neckTargetRate;
     this.disableMouthShapeMask = src.disableMouthShapeMask;
     this.disableBustShapeMask  = src.disableBustShapeMask;
     this.nipStandRate          = src.nipStandRate;
     this.skinTuyaRate          = src.skinTuyaRate;
     this.hohoAkaRate           = src.hohoAkaRate;
     this.tearsRate             = src.tearsRate;
     this.hideEyesHighlight     = src.hideEyesHighlight;
     this.siruLv              = src.siruLv;
     this.wetRate             = src.wetRate;
     this.visibleSon          = src.visibleSon;
     this.visibleSonAlways    = src.visibleSonAlways;
     this.visibleHeadAlways   = src.visibleHeadAlways;
     this.visibleBodyAlways   = src.visibleBodyAlways;
     this.visibleSimple       = src.visibleSimple;
     this.visibleGomu         = src.visibleGomu;
     this.simpleColor         = src.simpleColor;
     this.enableShapeHand     = src.enableShapeHand;
     this.shapeHandPtn        = src.shapeHandPtn;
     this.shapeHandBlendValue = src.shapeHandBlendValue;
 }
コード例 #4
0
 public void CopyStatus(ChaFileStatus _status)
 {
     this.SetStatusBytes(ChaFile.GetStatusBytes(_status));
 }
コード例 #5
0
 public static byte[] GetStatusBytes(ChaFileStatus _status)
 {
     return(MessagePackSerializer.Serialize <ChaFileStatus>((M0)_status));
 }