U3D
Open-source, cross-platform 2D and 3D game engine built in C++
|
Lua script event listener. More...
#include </var/dev/u3d/stable/Source/Urho3D/LuaScript/LuaScriptEventListener.h>
Public Member Functions | |
virtual | ~LuaScriptEventListener ()=default |
Destruct. | |
virtual void | AddEventHandler (const String &eventName, int index)=0 |
Add a scripted event handler by function at the given stack index. More... | |
virtual void | AddEventHandler (const String &eventName, const String &functionName)=0 |
Add a scripted event handler by function name. More... | |
virtual void | AddEventHandler (Object *sender, const String &eventName, int index)=0 |
Add a scripted event handler by function at the given stack index for a specific sender. More... | |
virtual void | AddEventHandler (Object *sender, const String &eventName, const String &functionName)=0 |
Add a scripted event handler by function name for a specific sender. More... | |
virtual void | RemoveEventHandler (const String &eventName)=0 |
Remove a scripted event handler. More... | |
virtual void | RemoveEventHandler (Object *sender, const String &eventName)=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 | RemoveAllEventHandlers ()=0 |
Remove all scripted event handlers. More... | |
virtual void | RemoveEventHandlersExcept (const Vector< String > &exceptionNames)=0 |
Remove all scripted event handlers, except those listed. More... | |
virtual bool | HasEventHandler (const String &eventName) const =0 |
Return whether has subscribed to an event. More... | |
virtual bool | HasEventHandler (Object *sender, const String &eventName) const =0 |
Return whether has subscribed to a specific sender's event. More... | |
Lua script event listener.
|
pure virtual |
Add a scripted event handler by function name.
Implemented in Urho3D::LuaScript, and Urho3D::LuaScriptInstance.
|
pure virtual |
Add a scripted event handler by function at the given stack index.
Implemented in Urho3D::LuaScriptInstance, and Urho3D::LuaScript.
|
pure virtual |
Add a scripted event handler by function name for a specific sender.
Implemented in Urho3D::LuaScript, and Urho3D::LuaScriptInstance.
|
pure virtual |
Add a scripted event handler by function at the given stack index for a specific sender.
Implemented in Urho3D::LuaScriptInstance, and Urho3D::LuaScript.
|
pure virtual |
Return whether has subscribed to an event.
Implemented in Urho3D::LuaScript, and Urho3D::LuaScriptInstance.
|
pure virtual |
Return whether has subscribed to a specific sender's event.
Implemented in Urho3D::LuaScript, and Urho3D::LuaScriptInstance.
|
pure virtual |
Remove all scripted event handlers.
Implemented in Urho3D::LuaScript, and Urho3D::LuaScriptInstance.
|
pure virtual |
Remove a scripted event handler.
Implemented in Urho3D::LuaScript, and Urho3D::LuaScriptInstance.
|
pure virtual |
Remove a scripted event handler for a specific sender.
Implemented in Urho3D::LuaScript, and Urho3D::LuaScriptInstance.
|
pure virtual |
Remove all scripted event handlers for a specific sender.
Implemented in Urho3D::LuaScript, and Urho3D::LuaScriptInstance.
|
pure virtual |
Remove all scripted event handlers, except those listed.
Implemented in Urho3D::LuaScript, and Urho3D::LuaScriptInstance.