lua/wrappers/game/lua_item.cpp
/**
	 * Sets all the values from the given item onto this item.
	 *
	 * @param am.item other The other item to set the values from.
	 * @returns am.item This
	 */
Sets all the values from the given item onto this item.
@param am.item other The other item to set the values from.
Sets all the values from the given item onto this item . @param am . item other The other item to set the values from .
int Item_set_item_from(lua_State *lua)
	{
		Item *item = castUData<Item>(lua, 1);
		if (item)
		{
			Item *other = castUData<Item>(lua, 2);
			if (other)
			{
				item->setItemFrom(*other);
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "set_item_from", "am.item other");
		}
		return LuaState::expectedContext(lua, "set_item_from", "am.item");
	}
int Item_set_item_from ( lua_State * lua ) { Item * item = castUData < Item > ( lua , 1 ) ; if ( item ) { Item * other = castUData < Item > ( lua , 2 ) ; if ( other ) { item -> setItemFrom ( * other ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Sets all the values from the given item onto this item.
Sets all the values from the given item onto this item .