EditorApplication.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System;
  2. using System.Collections.Generic;
  3. using BansheeEngine;
  4. namespace BansheeEditor
  5. {
  6. public enum SceneViewTool
  7. {
  8. View,
  9. Move,
  10. Rotate,
  11. Scale
  12. }
  13. public enum HandlePositionMode
  14. {
  15. Center,
  16. Pivot
  17. }
  18. public enum HandleCoordinateMode
  19. {
  20. Local,
  21. World
  22. }
  23. public class EditorApplication
  24. {
  25. private static SceneViewTool activeSceneTool = SceneViewTool.Move; // TODO - Actually retrieve this from somewhere
  26. private static HandlePositionMode handlePositionMode = HandlePositionMode.Pivot; // TODO - Actually retrieve this from somewhere
  27. private static HandleCoordinateMode handleCoordinateMode = HandleCoordinateMode.World; // TODO - Actually retrieve this from somewhere
  28. public static SceneViewTool ActiveSceneTool
  29. {
  30. get { return activeSceneTool; }
  31. set { activeSceneTool = value; } // TODO - Will likely need to update active GUI button when this changes
  32. }
  33. public static HandlePositionMode HandlePositionMode
  34. {
  35. get { return handlePositionMode; }
  36. set { handlePositionMode = value; } // TODO - Will likely need to update active GUI button when this changes
  37. }
  38. public static HandleCoordinateMode HandleCoordinateMode
  39. {
  40. get { return handleCoordinateMode; }
  41. set { handleCoordinateMode = value; } // TODO - Will likely need to update active GUI button when this changes
  42. }
  43. public static Camera sceneCamera
  44. {
  45. get { return null; } // TODO - Return actual scene camera
  46. }
  47. }
  48. }