start of find safe space

This commit is contained in:
Bluub
2021-06-19 12:01:19 +02:00
parent 96255c5c89
commit 8eba1e88c5
5 changed files with 50 additions and 67 deletions
@@ -103,6 +103,10 @@ namespace BBM
lua_pushlightuserdata(state.getState(), &_luamap);
lua_pushcclosure(state.getState(), LuaMap::getBlockType, 1);
lua_setglobal(state.getState(), "getBlockType");
lua_pushlightuserdata(state.getState(), &_luamap);
lua_pushcclosure(state.getState(), LuaMap::getClosestSafeSpace, 1);
lua_setglobal(state.getState(), "getClosestSafeSpace");
}
void IAControllableSystem::onFixedUpdate(WAL::ViewEntity<PositionComponent, ControllableComponent, IAControllableComponent, BombHolderComponent> &entity)