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

Method GetTeamColor

src/lua/LuaCallOuts.cpp:1816–1827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1814
1815
1816int LuaCallOuts::GetTeamColor(lua_State* L) {
1817 const TeamColor teamID = ParseTeam(L, 1);
1818 if (teamID == NoTeam) {
1819 return luaL_pushnil(L);
1820 }
1821 const fvec4& color = Team::getTankColor(teamID);
1822 if (color == NULL) {
1823 return luaL_pushnil(L);
1824 }
1825 lua_pushfvec3(L, color.rgb());
1826 return 3;
1827}
1828
1829
1830int LuaCallOuts::GetTeamRadarColor(lua_State* L) {

Callers

nothing calls this directly

Calls 3

luaL_pushnilFunction · 0.85
lua_pushfvec3Function · 0.85
ParseTeamFunction · 0.70

Tested by

no test coverage detected