/* * Attribute: population * * The population of this system, in billions of people * * Availability: * * alpha 10 * * Status: * * experimental */ static int l_starsystem_attr_population(lua_State *l) { PROFILE_SCOPED() StarSystem *s = LuaObject<StarSystem>::CheckFromLua(1); lua_pushnumber(l, s->GetTotalPop().ToDouble()); return 1; }
/* * Attribute: population * * The population of this system, in billions of people * * Availability: * * alpha 10 * * Status: * * experimental */ static int l_starsystem_attr_population(lua_State *l) { StarSystem *s = LuaStarSystem::CheckFromLua(1); lua_pushnumber(l, s->GetTotalPop().ToDouble()); return 1; }