lua/wrappers/game/lua_item.cpp
/**
	 * Creates a copy of this item, will create
	 * a new instance of the sprites used for the graphics.
	 *
	 * @returns am.item The newly cloned item.
	 */
Creates a copy of this item, will create
a new instance of the sprites used for the graphics.

@returns am.item The newly cloned item.
Creates a copy of this item will create a new instance of the sprites used for the graphics . @returns am . item The newly cloned item .
int Item_clone(lua_State *lua)
	{
		Item *item = castUData<Item>(lua, 1);
		if (item)
		{
			Item *newItem = item->clone();
			wrapRefObject<Item>(lua, newItem);
			return 1;
		}
		return LuaState::expectedContext(lua, "clone", "am.item");
	}
int Item_clone ( lua_State * lua ) { Item * item = castUData < Item > ( lua , 1 ) ; if ( item ) { Item * newItem = item -> clone ( ) ; wrapRefObject < Item > ( lua , newItem ) ; return 1 ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Creates a copy of this item, will create
 a new instance of the sprites used for the graphics.
Creates a copy of this item will create a new instance of the sprites used for the graphics .