SceneEditor3DEvents.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. //
  2. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  3. // LICENSE: Atomic Game Engine Editor and Tools EULA
  4. // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
  5. // license information: https://github.com/AtomicGameEngine/AtomicGameEngine
  6. //
  7. #pragma once
  8. #include <Atomic/Core/Object.h>
  9. namespace AtomicEditor
  10. {
  11. /// Variable timestep scene update.
  12. EVENT(E_GIZMOEDITMODECHANGED, GizmoEditModeChanged)
  13. {
  14. PARAM(P_MODE, Mode); // int
  15. }
  16. EVENT(E_GIZMOAXISMODECHANGED, GizmoAxisModeChanged)
  17. {
  18. PARAM(P_MODE, Mode); // int
  19. PARAM(P_TOGGLE, Toggle); // bool
  20. }
  21. EVENT(E_GIZMOMOVED, GizmoMoved)
  22. {
  23. }
  24. EVENT(E_SCENENODESELECTED, SceneNodeSelected)
  25. {
  26. PARAM(P_SCENE, Scene); // Scene
  27. PARAM(P_NODE, Node); // Node
  28. PARAM(P_SELECTED, Selected); // bool
  29. }
  30. EVENT(E_SCENEEDITBEGIN, SceneEditBegin)
  31. {
  32. PARAM(P_SCENE, Scene); // Scene
  33. }
  34. EVENT(E_SCENEEDITEND, SceneEditEnd)
  35. {
  36. PARAM(P_SCENE, Scene); // Scene
  37. }
  38. EVENT(E_SCENEEDITSTATECHANGESBEGIN, SceneEditStateChangesBegin)
  39. {
  40. }
  41. EVENT(E_SCENEEDITSTATECHANGE, SceneEditStateChange)
  42. {
  43. PARAM(P_SERIALIZABLE, Serializable); // Serializable
  44. }
  45. EVENT(E_SCENEEDITSTATECHANGESEND, SceneEditStateChangesEnd)
  46. {
  47. }
  48. /// A child node has been added to a parent node.
  49. EVENT(E_SCENEEDITNODEADDED, SceneEditNodeAdded)
  50. {
  51. PARAM(P_SCENE, Scene); // Scene pointer
  52. PARAM(P_PARENT, Parent); // Node pointer
  53. PARAM(P_NODE, Node); // Node pointer
  54. }
  55. /// A child node is about to be removed from a parent node.
  56. EVENT(E_SCENEEDITNODEREMOVED, SceneEditNodeRemoved)
  57. {
  58. PARAM(P_SCENE, Scene); // Scene pointer
  59. PARAM(P_PARENT, Parent); // Node pointer
  60. PARAM(P_NODE, Node); // Node pointer
  61. }
  62. EVENT(E_SCENEEDITADDREMOVENODES, SceneEditAddRemoveNodes)
  63. {
  64. PARAM(P_END, End); // bool
  65. }
  66. EVENT(E_SCENEEDITSCENEMODIFIED, SceneEditSceneModified)
  67. {
  68. }
  69. }