Loading...
Searching...
No Matches
CityBuilderCore.ItemLevel Class Reference

Detailed Description

convenience container that combines an item with a quantity and a capacity
can be used to represent how filled something is with an item

Classes

class  ItemLevelData
 

Public Member Functions

 ItemLevel (Item item, int quantity, int capacity)
 
int Remove (int max)
 
override string ToString ()
 
ItemLevelData GetData ()
 

Static Public Member Functions

static ItemLevel FromData (ItemLevelData data)
 

Public Attributes

Item Item
 
int Quantity
 
int Capacity
 

Properties

float UnitQuantity [get]
 how many (storage)units the item quantity would take up