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

Method GetFaceMaterial

src/lua/LuaObstacle.cpp:682–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680
681
682int LuaObstacle::GetFaceMaterial(lua_State* L) {
683 const MeshFace* face = ParseMeshFace(L, 1);
684 if (face == NULL) {
685 return luaL_pushnil(L);
686 }
687 lua_pushinteger(L, face->getMaterial()->getID());
688 return 1;
689}
690
691
692int LuaObstacle::GetFaceSmoothBounce(lua_State* L) {

Callers

nothing calls this directly

Calls 5

ParseMeshFaceFunction · 0.85
luaL_pushnilFunction · 0.85
lua_pushintegerFunction · 0.50
getIDMethod · 0.45
getMaterialMethod · 0.45

Tested by

no test coverage detected