DefaultHandle.cs 971 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using BansheeEngine;
  2. namespace BansheeEditor
  3. {
  4. /// <summary>
  5. /// Base class for all the built-in handle types.
  6. /// </summary>
  7. public abstract class DefaultHandle : Handle
  8. {
  9. protected Vector3 position;
  10. protected Quaternion rotation;
  11. /// <summary>
  12. /// World position of the handle.
  13. /// </summary>
  14. public Vector3 Position
  15. {
  16. get { return position; }
  17. set { position = value; }
  18. }
  19. /// <summary>
  20. /// World rotation of the handle.
  21. /// </summary>
  22. public Quaternion Rotation
  23. {
  24. get { return rotation; }
  25. set { rotation = value; }
  26. }
  27. /// <summary>
  28. /// Checks is the handle currently being interacted with.
  29. /// </summary>
  30. /// <returns>True if the handle is being interacted with (i.e. dragged or clicked).</returns>
  31. internal abstract bool IsDragged();
  32. }
  33. }