Module gwy :: Class InventoryStore
[hide private]
[frames] | no frames]

Class InventoryStore

source code

Instance Methods [hide private]
 
get_inventory()
Gets the inventory a inventory store wraps.
source code
 
get_column_by_name(name)
Gets tree model column corresponding to a trait name.
source code
Method Details [hide private]

get_inventory()

source code 

Gets the inventory a inventory store wraps.

Returns:
The underlying inventory (its reference count is not increased). (Inventory)

get_column_by_name(name)

source code 

Gets tree model column corresponding to a trait name.

The underlying inventory must support trait names, except for name "item" which always works (and always maps to 0).

Parameters:
  • name - Trait (column) name. (string)
Returns:
The underlying inventory (its reference count is not increased). (int)