JSEventHelper.h 392 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include <Atomic/Core/Object.h>
  3. namespace Atomic
  4. {
  5. class ATOMIC_API JSEventHelper : public Object
  6. {
  7. OBJECT(JSEventHelper);
  8. public:
  9. /// Construct.
  10. JSEventHelper(Context* context);
  11. /// Destruct.
  12. virtual ~JSEventHelper();
  13. void AddEventHandler(StringHash eventType);
  14. private:
  15. void HandleEvent(StringHash eventType, VariantMap& eventData);
  16. };
  17. }