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

Function ParseBox

src/lua/LuaSpatial.cpp:225–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223
224
225static inline int ParseBox(lua_State* L, BoxData& box) {
226 const fvec3 mins = luaL_checkfvec3(L, 1);
227 const fvec3 maxs = luaL_checkfvec3(L, 4);
228 box.extents.set(mins, maxs);
229 box.radians = luaL_optfloat(L, 7, 0.0f);
230 return 6;
231}
232
233
234//============================================================================//

Callers 3

GetPlayersInBoxMethod · 0.85
GetFlagsInBoxMethod · 0.85
GetShotsInBoxMethod · 0.85

Calls 3

luaL_checkfvec3Function · 0.85
luaL_optfloatFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected