RoleCustomBoneData.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace MetaClient
  5. {
  6. public class RoleCustomData
  7. {
  8. public Dictionary<int, PartData> bodyList;
  9. public Dictionary<int, PartData> faceList;
  10. public Dictionary<string, Vector3> orginLocalScaleList;
  11. public Dictionary<string, Vector3> orginLocalPositionList;
  12. public Dictionary<string, Quaternion> orginLocalRotationList;
  13. public Dictionary<int, float> changedValueList;
  14. public Dictionary<string, Vector3> changedScaleList;
  15. public Dictionary<string, Vector3> changedPositionList;
  16. public Dictionary<string, Vector3> changedRotationList;
  17. public RoleCustomData ()
  18. {
  19. bodyList = new Dictionary<int, PartData>();
  20. faceList = new Dictionary<int, PartData>();
  21. orginLocalScaleList = new Dictionary<string, Vector3>();
  22. orginLocalPositionList = new Dictionary<string, Vector3>();
  23. orginLocalRotationList = new Dictionary<string, Quaternion>();
  24. changedValueList = new Dictionary<int, float>();
  25. changedScaleList = new Dictionary<string, Vector3>();
  26. changedPositionList = new Dictionary<string, Vector3>();
  27. changedRotationList = new Dictionary<string, Vector3>();
  28. }
  29. }
  30. public class PartData
  31. {
  32. public int id;
  33. public EditableBodyPart part;
  34. public ModifyType modifyType;
  35. public float floatValue;
  36. public Vector3 vecValue;
  37. public string pathValue;
  38. public string[] bones;
  39. public float minChangeValue;
  40. public float maxChangeValue;
  41. public Vector3 scaleChange;
  42. public Vector3 positionChange;
  43. public Vector3 rotationChange;
  44. public PartData(int _id,EditableBodyPart _part, ModifyType _modifyType)
  45. {
  46. id = _id;
  47. part = _part;
  48. modifyType = _modifyType;
  49. floatValue = 1;
  50. vecValue = Vector3.zero;
  51. pathValue = "";
  52. }
  53. public PartData(int _id,string[] _bones,float _min,float _max,Vector3 _scaleChange,Vector3 _posChange,Vector3 _rotChange)
  54. {
  55. id = _id;
  56. floatValue = 1;
  57. vecValue = Vector3.zero;
  58. pathValue = "";
  59. bones = _bones;
  60. minChangeValue = _min;
  61. maxChangeValue = _max;
  62. scaleChange = _scaleChange;
  63. positionChange = _posChange;
  64. rotationChange = _rotChange;
  65. }
  66. }
  67. }