lua/wrappers/game/lua_engine.cpp
/**
	 * @static
	 * Looks up a race in the game engine by name.
	 * @param string race_name The race name to look up.
	 * @returns am.race The found race or nil.
	 */
@static
Looks up a race in the game engine by name.
@param string race_name The race name to look up.
@returns am.race The found race or nil.
@static Looks up a race in the game engine by name . @param string race_name The race name to look up . @returns am . race The found race or nil .
int Engine_race(lua_State *lua)
	{
		if (lua_isstr(lua, 1))
		{
			Race *race = Engine::getEngine()->getRace(lua_tostring(lua, 1));
			if (race)
			{
				wrapRefObject<Race>(lua, race);
				return 1;
			}
			lua_pushnil(lua);
			return 1;
		}
		return LuaState::expectedArgs(lua, "@race", "string race_name");
	}
int Engine_race ( lua_State * lua ) { if ( lua_isstr ( lua , 1 ) ) { Race * race = Engine :: getEngine ( ) -> getRace ( lua_tostring ( lua , 1 ) ) ; if ( race ) { wrapRefObject < Race > ( lua , race ) ; return 1 ; } lua_pushnil ( lua ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; }
@static
 Looks up a race in the game engine by name.
@static Looks up a race in the game engine by name .