lua/wrappers/game/lua_engine.cpp
/**
	 * @static
	 * Looks up a tile set based on its name.
	 * @param string tile_set_name Tile set name to look up
	 * @returns am.tile_set The found tile set or nil.
	 */
@static
Looks up a tile set based on its name.
@param string tile_set_name Tile set name to look up
@returns am.tile_set The found tile set or nil.
@static Looks up a tile set based on its name . @param string tile_set_name Tile set name to look up @returns am . tile_set The found tile set or nil .
int Engine_tile_set(lua_State *lua)
	{
		if (lua_isstr(lua, 1))
		{
			TileSet *set = Engine::getEngine()->getTileSet(lua_tostring(lua, 1));
			if (set)
			{
				wrapRefObject<TileSet>(lua, set);
				return 1;
			}
			lua_pushnil(lua);
			return 1;
		}
		return LuaState::expectedArgs(lua, "@tile_set", "string tile_set_name");
	}
int Engine_tile_set ( lua_State * lua ) { if ( lua_isstr ( lua , 1 ) ) { TileSet * set = Engine :: getEngine ( ) -> getTileSet ( lua_tostring ( lua , 1 ) ) ; if ( set ) { wrapRefObject < TileSet > ( lua , set ) ; return 1 ; } lua_pushnil ( lua ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; }
@static
 Looks up a tile set based on its name.
@static Looks up a tile set based on its name .