ActionAdventureKit 1.5.4
|
serializable utility class that combines a resource with a value
useful for configuring resource values in the inspector
for example health damage, stamina cost for moves, ...
Public Member Functions | |
ResourceQuantity (ResourceType type, float quantity) | |
override string | ToString () |
Static Public Member Functions | |
static ResourceQuantity | operator* (ResourceQuantity q, int n) |
static ResourceQuantity | operator/ (ResourceQuantity q, int n) |
static ResourceQuantity | operator+ (ResourceQuantity q, int n) |
static ResourceQuantity | operator- (ResourceQuantity q, int n) |
static ResourceQuantity | operator* (ResourceQuantity q, float n) |
static ResourceQuantity | operator/ (ResourceQuantity q, float n) |
static ResourceQuantity | operator+ (ResourceQuantity q, float n) |
static ResourceQuantity | operator- (ResourceQuantity q, float n) |
Public Attributes | |
ResourceType | Type |
float | Quantity = 1 |