lua/wrappers/game/lua_race.cpp
/**
	 * Creates a new race with the given race name.
	 *
	 * @param string race_name The race name that is used to identify this race.
	 */
Creates a new race with the given race name.
@param string race_name The race name that is used to identify this race.
Creates a new race with the given race name . @param string race_name The race name that is used to identify this race .
int Race_ctor(lua_State *lua)
	{
		if (lua_isstr(lua, 1))
		{
			const char *raceName = lua_tostring(lua, 1);
			Race *race = new Race(raceName);
			wrapRefObject<Race>(lua, race);
			return 1;
		}
		return LuaState::expectedArgs(lua, "@new", "string race_name");
	}
int Race_ctor ( lua_State * lua ) { if ( lua_isstr ( lua , 1 ) ) { const char * raceName = lua_tostring ( lua , 1 ) ; Race * race = new Race ( raceName ) ; wrapRefObject < Race > ( lua , race ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; }
Creates a new race with the given race name.
Creates a new race with the given race name .