U3D
Open-source, cross-platform 2D and 3D game engine built in C++
|
Interface class for allowing script objects or functions to subscribe to events. More...
#include </var/dev/u3d/stable/Source/Urho3D/AngelScript/ScriptEventListener.h>
Public Member Functions | |
virtual | ~ScriptEventListener ()=default |
Destruct. | |
virtual void | AddEventHandler (StringHash eventType, const String &handlerName)=0 |
Add a scripted event handler. More... | |
virtual void | AddEventHandler (Object *sender, StringHash eventType, const String &handlerName)=0 |
Add a scripted event handler for a specific sender. More... | |
virtual void | RemoveEventHandler (StringHash eventType)=0 |
Remove a scripted event handler. More... | |
virtual void | RemoveEventHandler (Object *sender, StringHash eventType)=0 |
Remove a scripted event handler for a specific sender. More... | |
virtual void | RemoveEventHandlers (Object *sender)=0 |
Remove all scripted event handlers for a specific sender. More... | |
virtual void | RemoveEventHandlers ()=0 |
Remove all scripted event handlers. More... | |
virtual void | RemoveEventHandlersExcept (const PODVector< StringHash > &exceptions)=0 |
Remove all scripted event handlers, except those listed. More... | |
virtual bool | HasEventHandler (StringHash eventType) const =0 |
Return whether has subscribed to an event. More... | |
virtual bool | HasEventHandler (Object *sender, StringHash eventType) const =0 |
Return whether has subscribed to a specific sender's event. More... | |
Interface class for allowing script objects or functions to subscribe to events.
|
pure virtual |
Add a scripted event handler for a specific sender.
Implemented in Urho3D::ScriptFile, and Urho3D::ScriptInstance.
|
pure virtual |
Add a scripted event handler.
Implemented in Urho3D::ScriptFile, and Urho3D::ScriptInstance.
|
pure virtual |
Return whether has subscribed to a specific sender's event.
Implemented in Urho3D::ScriptFile, and Urho3D::ScriptInstance.
|
pure virtual |
Return whether has subscribed to an event.
Implemented in Urho3D::ScriptFile, and Urho3D::ScriptInstance.
|
pure virtual |
Remove a scripted event handler for a specific sender.
Implemented in Urho3D::ScriptFile, and Urho3D::ScriptInstance.
|
pure virtual |
Remove a scripted event handler.
Implemented in Urho3D::ScriptFile, and Urho3D::ScriptInstance.
|
pure virtual |
Remove all scripted event handlers.
Implemented in Urho3D::ScriptFile, and Urho3D::ScriptInstance.
|
pure virtual |
Remove all scripted event handlers for a specific sender.
Implemented in Urho3D::ScriptFile, and Urho3D::ScriptInstance.
|
pure virtual |
Remove all scripted event handlers, except those listed.
Implemented in Urho3D::ScriptFile, and Urho3D::ScriptInstance.