| 12345678910111213141516171819202122232425262728 |
- #pragma once
- #include <Atomic/Core/Object.h>
- namespace Atomic
- {
- class ATOMIC_API JSEventHelper : public Object
- {
- OBJECT(JSEventHelper);
- public:
- /// Construct.
- JSEventHelper(Context* context);
- /// Destruct.
- virtual ~JSEventHelper();
- void AddEventHandler(StringHash eventType);
- private:
- void HandleEvent(StringHash eventType, VariantMap& eventData);
- };
- }
|