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

Method GetFaceBaseTeam

src/lua/LuaObstacle.cpp:708–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706//
707
708int LuaObstacle::GetFaceBaseTeam(lua_State* L) {
709 const MeshFace* face = ParseMeshFace(L, 1);
710 if (face == NULL) {
711 return luaL_pushnil(L);
712 }
713 const int team = face->getBaseTeam();
714 if (team < 0) {
715 return luaL_pushnil(L);
716 }
717 lua_pushinteger(L, team);
718 return 1;
719}
720
721
722int LuaObstacle::GetFaceLinkName(lua_State* L) {

Callers

nothing calls this directly

Calls 4

ParseMeshFaceFunction · 0.85
luaL_pushnilFunction · 0.85
lua_pushintegerFunction · 0.50
getBaseTeamMethod · 0.45

Tested by

no test coverage detected