lua/wrappers/game/lua_engine.cpp
/**
	 * @static
	 * Looks up a tile based on its name and the current list of tile sets in use.
	 * @param string tile_name The tile name to look up.
	 * @returns am.tile The found tile, or nil.
	 */
@static
Looks up a tile based on its name and the current list of tile sets in use.
@param string tile_name The tile name to look up.
@returns am.tile The found tile, or nil.
@static Looks up a tile based on its name and the current list of tile sets in use . @param string tile_name The tile name to look up . @returns am . tile The found tile or nil .
int Engine_tile(lua_State *lua)
	{
		if (lua_isstr(lua, 1))
		{
			Tile *tile = Engine::getEngine()->getTile(lua_tostring(lua, 1));
			if (tile)
			{
				wrapRefObject<Tile>(lua, tile);
				return 1;
			}
			lua_pushnil(lua);
			return 1;
		}
		return LuaState::expectedArgs(lua, "@tile", "string tile_name");
	}
int Engine_tile ( lua_State * lua ) { if ( lua_isstr ( lua , 1 ) ) { Tile * tile = Engine :: getEngine ( ) -> getTile ( lua_tostring ( lua , 1 ) ) ; if ( tile ) { wrapRefObject < Tile > ( lua , tile ) ; return 1 ; } lua_pushnil ( lua ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; }
@static
 Looks up a tile based on its name and the current list of tile sets in use.
@static Looks up a tile based on its name and the current list of tile sets in use .