adding register for getPlayer and getPlayerRound

This commit is contained in:
Bluub
2021-06-18 18:51:04 +02:00
parent 278cb9204f
commit 5565a15ab3
4 changed files with 46 additions and 6 deletions
@@ -83,6 +83,14 @@ namespace BBM
lua_pushlightuserdata(state.getState(), &_luamap);
lua_pushcclosure(state.getState(), LuaMap::getPath, 1);
lua_setglobal(state.getState(), "getPath");
lua_pushlightuserdata(state.getState(), &_luamap);
lua_pushcclosure(state.getState(), LuaMap::getPlayer, 1);
lua_setglobal(state.getState(), "getPlayer");
lua_pushlightuserdata(state.getState(), &_luamap);
lua_pushcclosure(state.getState(), LuaMap::getPlayerRound, 1);
lua_setglobal(state.getState(), "getPlayerRound");
}
void IAControllableSystem::onFixedUpdate(WAL::ViewEntity<PositionComponent, ControllableComponent, IAControllableComponent, BombHolderComponent> &entity)