using System.Collections; using System.Collections.Generic; using UnityEngine; namespace MetaClient { public class RoleCustomData { public Dictionary bodyList; public Dictionary faceList; public Dictionary orginLocalScaleList; public Dictionary orginChangeScaleList; public Dictionary ChangedScaleParamsList; public Dictionary orginLocalPositionList; public Dictionary orginLocalRotationList; public Dictionary orginBlendList; public Dictionary changedValueList; public Dictionary changedScaleList; public Dictionary changedPositionList; public Dictionary changedRotationList; public RoleCustomData () { bodyList = new Dictionary(); faceList = new Dictionary(); orginLocalScaleList = new Dictionary(); orginChangeScaleList = new Dictionary(); ChangedScaleParamsList = new Dictionary(); orginLocalPositionList = new Dictionary(); orginLocalRotationList = new Dictionary(); orginBlendList = new Dictionary(); changedValueList = new Dictionary(); changedScaleList = new Dictionary(); changedPositionList = new Dictionary(); changedRotationList = new Dictionary(); } } public class PartData { public int id; public EditableBodyPart part; public ModifyType modifyType; public float floatValue; public Vector3 vecValue; public string pathValue; public string[] bones; //使用变形器 public string biggerBlendName; public string smallerBlendName; public bool useBlend; public bool oneBlend; public float minChangeValue; public float maxChangeValue; public Vector3 scaleChange; public Vector3 positionChange; public Vector3 rotationChange; public PartData(int _id,EditableBodyPart _part, ModifyType _modifyType) { id = _id; part = _part; modifyType = _modifyType; floatValue = 1; vecValue = Vector3.zero; pathValue = ""; } public PartData(int _id,string[] _bones,float _min,float _max,Vector3 _scaleChange,Vector3 _posChange,Vector3 _rotChange,bool _useBlend,string _bigBlendName,string _smallBlendName,float _defaultValue = 0) { id = _id; vecValue = Vector3.zero; pathValue = ""; bones = _bones; scaleChange = _scaleChange; positionChange = _posChange; rotationChange = _rotChange; useBlend = _useBlend; biggerBlendName = _bigBlendName; smallerBlendName = _smallBlendName; if(biggerBlendName == "" || biggerBlendName == "no" || smallerBlendName == "" || smallerBlendName == "no") { oneBlend = true; }else { oneBlend = false; } if(_useBlend) { if(oneBlend) { floatValue = 0; }else { floatValue = 0.5f; } minChangeValue = 0; maxChangeValue = 1; } else { floatValue = 1; minChangeValue = _min; maxChangeValue = _max; } } } }