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)
  3. bool opEquals(item_t[] items)
    class Item
    @safe @nogc
    bool
    opEquals

Examples

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

Meta