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

Detailed Description

serializable utility class that combines an item with a quantity, useful for configuring items in the inspector
for example items that are needed to do something(1xkey to open door) or items contained in a pickup

Public Member Functions

 ItemQuantity (ItemBase item, int quantity)
 
override string ToString ()
 

Static Public Member Functions

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)
 

Public Attributes

ItemBase Item
 
int Quantity = 1