MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / GetPlayerGfxBlock

Method GetPlayerGfxBlock

src/lua/LuaCallOuts.cpp:2034–2040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2032
2033
2034int LuaCallOuts::GetPlayerGfxBlock(lua_State* L) {
2035 const Player* player = ParsePlayer(L, 1);
2036 if (player == NULL) {
2037 return luaL_pushnil(L);
2038 }
2039 return Get_GfxBlock(L, player->getGfxBlock());
2040}
2041
2042
2043int LuaCallOuts::SetPlayerRadarGfxBlock(lua_State* L) {

Callers

nothing calls this directly

Calls 3

ParsePlayerFunction · 0.85
luaL_pushnilFunction · 0.85
Get_GfxBlockFunction · 0.85

Tested by

no test coverage detected