ISkinningSerializer.cs 956 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. namespace UnityEditor.U2D.Animation
  4. {
  5. internal interface ISkinningSerializer
  6. {
  7. bool CanDeserialize(string data);
  8. SkinningCopyData Deserialize(string data);
  9. string Serialize(SkinningCopyData skinningData);
  10. }
  11. [Serializable]
  12. internal class SpriteBoneCopyData
  13. {
  14. public UnityEngine.U2D.SpriteBone spriteBone;
  15. public int order;
  16. }
  17. [Serializable]
  18. internal class SkinningCopySpriteData
  19. {
  20. public string spriteName;
  21. public List<SpriteBoneCopyData> spriteBones;
  22. public List<Vertex2D> vertices;
  23. public List<int> indices;
  24. public List<Edge> edges;
  25. public List<string> boneWeightNames;
  26. }
  27. [Serializable]
  28. internal class SkinningCopyData
  29. {
  30. public float pixelsPerUnit;
  31. public List<SkinningCopySpriteData> copyData = new List<SkinningCopySpriteData>();
  32. }
  33. }