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

Function PushFlags

src/lua/LuaSpatial.cpp:687–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685
686
687static void PushFlags(lua_State* L, std::vector<const Flag*> flags) {
688 lua_createtable(L, flags.size(), 0);
689 for (size_t i = 0; i < flags.size(); i++) {
690 lua_pushinteger(L, flags[i]->id);
691 lua_rawseti(L, -2, i + 1);
692 }
693}
694
695
696//============================================================================//

Callers 6

GetFlagsInPlanesMethod · 0.85
GetFlagsInSphereMethod · 0.85
GetFlagsInCylinderMethod · 0.85
GetFlagsInBoxMethod · 0.85
GetVisibleFlagsMethod · 0.85
GetRadarFlagsMethod · 0.85

Calls 4

lua_createtableFunction · 0.50
lua_pushintegerFunction · 0.50
lua_rawsetiFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected