Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | List of all members
cItem::sItemCompare Struct Reference

Compares two items for the same type or category. More...

#include <Item.h>

Public Member Functions

bool operator() (const cItem &a_Lhs, const cItem &a_Rhs) const
 

Detailed Description

Compares two items for the same type or category.

Type of item is defined via m_ItemType and m_ItemDamage. Some items (e.g. planks) have the same m_ItemType and the wood kind is defined via m_ItemDamage. -1 is used as placeholder for all kinds (e.g. all kind of planks).

Items are different when the ItemType is different or the ItemDamage is different and unequal -1.

Definition at line 182 of file Item.h.

Member Function Documentation

◆ operator()()

bool cItem::sItemCompare::operator() ( const cItem a_Lhs,
const cItem a_Rhs 
) const
inline

Definition at line 184 of file Item.h.


The documentation for this struct was generated from the following file: