MCPcopy Create free account
hub / github.com/The-Powder-Toy/The-Powder-Toy / AddEventHandler

Method AddEventHandler

src/lua/LuaScriptInterface.cpp:462–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462void LuaScriptInterface::AddEventHandler(int eventType, int stackIndex)
463{
464 gameControllerEventHandlers[eventType].emplace_back().Assign(L, stackIndex);
465}
466
467void LuaScriptInterface::RemoveEventHandler(int eventType, int stackIndex)
468{

Callers 1

fregisterFunction · 0.80

Calls 1

AssignMethod · 0.80

Tested by

no test coverage detected