Tramway SDK
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tram::Ext::Kitchensink::Inventory Struct Reference

#include <inventory.h>

Public Member Functions

int AddItem (const ItemInstance &item)
 
int AddItem (name_t item_class, int count)
 
int RemoveItem (name_t item_class, int count)
 
int GetItemCount (name_t item_class)
 

Static Public Member Functions

static InventoryFind (id_t id)
 

Public Attributes

std::vector< ItemInstanceitems
 
int width = 1
 
int height = 1
 
bool allow_overlap = true
 

Member Function Documentation

◆ AddItem() [1/2]

int tram::Ext::Kitchensink::Inventory::AddItem ( const ItemInstance item)

◆ AddItem() [2/2]

int tram::Ext::Kitchensink::Inventory::AddItem ( name_t  item_class,
int  count 
)

◆ Find()

Inventory * tram::Ext::Kitchensink::Inventory::Find ( id_t  id)
static

◆ GetItemCount()

int tram::Ext::Kitchensink::Inventory::GetItemCount ( name_t  item_class)

◆ RemoveItem()

int tram::Ext::Kitchensink::Inventory::RemoveItem ( name_t  item_class,
int  count 
)

Member Data Documentation

◆ allow_overlap

bool tram::Ext::Kitchensink::Inventory::allow_overlap = true

◆ height

int tram::Ext::Kitchensink::Inventory::height = 1

◆ items

std::vector<ItemInstance> tram::Ext::Kitchensink::Inventory::items

◆ width

int tram::Ext::Kitchensink::Inventory::width = 1

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