lua/wrappers/game/lua_item.cpp
/**
	 * Returns true if the given item is the same as this item.
	 *
	 * @param am.item rhs The other item to compare with.
	 * @returns boolean True if they are the same item.
	 */
Returns true if the given item is the same as this item.
@param am.item rhs The other item to compare with.
@returns boolean True if they are the same item.
Returns true if the given item is the same as this item . @param am . item rhs The other item to compare with . @returns boolean True if they are the same item .
int Item_eq(lua_State *lua)
	{
		Item *lhs = castUData<Item>(lua, 1);
		if (!lhs)
		{
			return LuaState::expectedContext(lua, "__eq", "am.item");
		}
		Item *rhs = castUData<Item>(lua, 2);
		lua_pushboolean(lua, lhs == rhs);
		return 1;
	}
int Item_eq ( lua_State * lua ) { Item * lhs = castUData < Item > ( lua , 1 ) ; if ( ! lhs ) { return LuaState :: expectedContext ( lua , " " , " " ) ; } Item * rhs = castUData < Item > ( lua , 2 ) ; lua_pushboolean ( lua , lhs == rhs ) ; return 1 ; }
Returns true if the given item is the same as this item.
Returns true if the given item is the same as this item .