Item.opEquals

Compare an item with its type as a string or a group of strings.

  1. bool opEquals(Object o)
  2. bool opEquals(item_t item)
    class Item
    @safe @nogc
    bool
    opEquals
  3. bool opEquals(item_t[] items)

Examples

Item item = new Items.Beetroot();
assert(item == Items.beetroot);
assert(item == [Items.beetrootSoup, Items.beetroot]);

Meta