lua/wrappers/game/lua_engine.cpp
/**
	 * @static
	 * Removes a race from the game engine.
	 * @param am.race race The race to remove.
	 * @returns boolean True if the race was sucessfully removed.
	 */
@static
Removes a race from the game engine.
@static Removes a race from the game engine .
int Engine_remove_race(lua_State *lua)
	{
		Race *race = nullptr;
		if (lua_isstr(lua, 1))
		{
			race = Engine::getEngine()->getRace(lua_tostring(lua, 1));
		}
		else
		{
			race = castUData<Race>(lua, 1);
		}
		if (race)
		{
			lua_pushboolean(lua, Engine::getEngine()->removeRace(race));
			return 1;
		}
		return LuaState::expectedArgs(lua, "@remove_race", 2, "string race_name", "Race race");
	}
int Engine_remove_race ( lua_State * lua ) { Race * race = nullptr ; if ( lua_isstr ( lua , 1 ) ) { race = Engine :: getEngine ( ) -> getRace ( lua_tostring ( lua , 1 ) ) ; } else { race = castUData < Race > ( lua , 1 ) ; } if ( race ) { lua_pushboolean ( lua , Engine :: getEngine ( ) -> removeRace ( race ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , 2 , " " , " " ) ; }
@static
 Removes a race from the game engine.
@static Removes a race from the game engine .