ObjectEvent.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #ifndef CRYINCLUDE_EDITOR_INCLUDE_OBJECTEVENT_H
  9. #define CRYINCLUDE_EDITOR_INCLUDE_OBJECTEVENT_H
  10. #pragma once
  11. //! Standart objects types.
  12. enum ObjectType
  13. {
  14. OBJTYPE_AZENTITY = 1 << 21,
  15. };
  16. //////////////////////////////////////////////////////////////////////////
  17. //! Events that objects may want to handle.
  18. //! Passed to OnEvent method of CBaseObject.
  19. enum ObjectEvent
  20. {
  21. EVENT_INGAME = 1, //!< Signals that editor is switching into the game mode.
  22. EVENT_OUTOFGAME, //!< Signals that editor is switching out of the game mode.
  23. EVENT_REFRESH, //!< Signals that editor is refreshing level.
  24. EVENT_DBLCLICK, //!< Signals that object have been double clicked.
  25. EVENT_RELOAD_ENTITY,//!< Signals that entities scripts must be reloaded.
  26. EVENT_RELOAD_GEOM, //!< Signals that all possible geometries should be reloaded.
  27. EVENT_UNLOAD_GEOM, //!< Signals that all possible geometries should be unloaded.
  28. EVENT_MISSION_CHANGE, //!< Signals that mission have been changed.
  29. EVENT_ALIGN_TOGRID, //!< Object should align itself to the grid.
  30. EVENT_PHYSICS_GETSTATE,//!< Signals that entities should accept their physical state from game.
  31. EVENT_PHYSICS_RESETSTATE,//!< Signals that physics state must be reseted on objects.
  32. EVENT_PHYSICS_APPLYSTATE,//!< Signals that the stored physics state must be applied to objects.
  33. EVENT_FREE_GAME_DATA,//!< Object should free game data that its holding.
  34. EVENT_CONFIG_SPEC_CHANGE, //!< Called when config spec changed.
  35. EVENT_HIDE_HELPER, //!< Signals that happens when Helper mode switches to be hidden.
  36. };
  37. #endif // CRYINCLUDE_EDITOR_INCLUDE_OBJECTEVENT_H