HoverRace
2.0
|
Scripting peer for input. More...
#include <InputPeer.h>
Public Member Functions | |
InputPeer (Script::Core &scripting, Control::InputEventController &controller) | |
virtual | ~InputPeer () |
void | LHotkey (const std::string &key, const luabind::object &fn) |
Public Member Functions inherited from HoverRace::Script::Peer | |
Peer (Core &scripting, const std::string &name) | |
Peer (const Peer &)=delete | |
virtual | ~Peer () |
Core & | GetScripting () const |
void | LHelp () |
void | LHelp_M (const std::string &methodName) |
Peer & | operator= (const Peer &)=delete |
Static Public Member Functions | |
static void | Register (Script::Core &scripting) |
Register this peer in an environment. More... | |
Static Public Member Functions inherited from HoverRace::Script::Peer | |
static void | Register (Core &scripting) |
Private Types | |
using | SUPER = Script::Peer |
Private Attributes | |
Control::InputEventController & | controller |
std::vector< std::unique_ptr< boost::signals2::scoped_connection > > | hotkeyConns |
std::vector< Script::Handlers > | hotkeyHandlers |
Scripting peer for input.
|
private |
HoverRace::Client::HoverScript::InputPeer::InputPeer | ( | Script::Core & | scripting, |
Control::InputEventController & | controller | ||
) |
|
inlinevirtual |
void HoverRace::Client::HoverScript::InputPeer::LHotkey | ( | const std::string & | key, |
const luabind::object & | fn | ||
) |
|
static |
Register this peer in an environment.
scripting | The target environment. |
|
private |
|
private |
|
private |