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

Detailed Description

convenience container that combines an item with a quantity

Classes

class  ItemQuantityData
 

Public Member Functions

 ItemQuantity (Item item, int quantity)
 
int Remove (int max)
 
override string ToString ()
 
ItemQuantityData GetData ()
 

Static Public Member Functions

static ItemQuantity operator+ (ItemQuantity a)
 
static ItemQuantity operator- (ItemQuantity a)
 
static ItemQuantity operator* (ItemQuantity q, int n)
 
static ItemQuantity operator/ (ItemQuantity q, int n)
 
static ItemQuantity operator+ (ItemQuantity q, int n)
 
static ItemQuantity operator- (ItemQuantity q, int n)
 
static ItemQuantity FromData (ItemQuantityData data)
 

Public Attributes

Item Item
 
int Quantity
 

Properties

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