PageRenderTime 50ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/XSpriterPipelineExtensions/ContentClasses.cs

https://bitbucket.org/dylanwolf/xspriter
C# | 45 lines | 40 code | 5 blank | 0 comment | 0 complexity | 7a11d124c1f79264cf5a2cf06568e0e7 MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Microsoft.Xna.Framework;
  6. namespace FuncWorks.XNA.XSpriter
  7. {
  8. public class ImageContent : Image
  9. {
  10. public String TextureName;
  11. }
  12. public class FrameImageContent : FrameImage
  13. {
  14. public bool Tweened;
  15. public Int32 ZIndex;
  16. public String TextureName;
  17. }
  18. public struct FrameContent
  19. {
  20. public Bone[] Bones;
  21. public FrameImageContent[] Objects;
  22. }
  23. public struct AnimationContent
  24. {
  25. public String Name;
  26. public Int64 Length;
  27. public Boolean Looping;
  28. public FrameContent[] Frames;
  29. public Dictionary<String, Int32> TextureTimelines;
  30. public Dictionary<String, Int32> BoneTimelines;
  31. public List<RuntimeTransform> Transforms;
  32. }
  33. public class CharacterContent
  34. {
  35. public ImageContent[][] Textures;
  36. public List<AnimationContent> Animations;
  37. public Vector2 Position;
  38. public Int32 FramesPerSecond;
  39. }
  40. }