lua/wrappers/game/lua_tile.cpp
/**
	 * Sets the tile's description.
	 *
	 * @param string description The tile's description.
	 * @returns am.tile This
	 */
Sets the tile's description.
@param string description The tile's description.
Sets the tile ' s description . @param string description The tile ' s description .
int Tile_description(lua_State *lua)
	{
		Tile *tile = castUData<Tile>(lua, 1);
		if (tile)
		{
			if (lua_gettop(lua) == 1)
			{
				lua_pushstring(lua, tile->getDescription().c_str());
				return 1;
			}
			else if (lua_isstr(lua, 2))
			{
				tile->setDescription(lua_tostring(lua, 2));
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "description", "string description");
		}
		return LuaState::expectedContext(lua, "description", "am.tile");
	}
int Tile_description ( lua_State * lua ) { Tile * tile = castUData < Tile > ( lua , 1 ) ; if ( tile ) { if ( lua_gettop ( lua ) == 1 ) { lua_pushstring ( lua , tile -> getDescription ( ) . c_str ( ) ) ; return 1 ; } else if ( lua_isstr ( lua , 2 ) ) { tile -> setDescription ( lua_tostring ( lua , 2 ) ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Sets the tile's description.
Sets the tile ' s description .