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

Method GetFaceLinkName

src/lua/LuaObstacle.cpp:722–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720
721
722int LuaObstacle::GetFaceLinkName(lua_State* L) {
723 const MeshFace* face = ParseMeshFace(L, 1);
724 if (face == NULL) {
725 return luaL_pushnil(L);
726 }
727 if (!face->isLinkFace()) {
728 return luaL_pushnil(L);
729 }
730 lua_pushstdstring(L, face->getLinkName());
731 return 1;
732}
733
734
735int LuaObstacle::GetFaceLinkSrcID(lua_State* L) {

Callers

nothing calls this directly

Calls 5

ParseMeshFaceFunction · 0.85
luaL_pushnilFunction · 0.85
lua_pushstdstringFunction · 0.85
isLinkFaceMethod · 0.80
getLinkNameMethod · 0.80

Tested by

no test coverage detected