Loading...
Searching...
No Matches
AdventureCore.ItemValue Struct Reference

Detailed Description

allows storing generic data alongside the item, for example ammo count, durability or upgrades

Public Member Functions

 ItemValue (string key, string value)
 
void SetValue< T > (T value)
 
GetValue< T > ()
 

Static Public Member Functions

static bool CheckValue (ItemValue[] values, string key)
 
static void SetValue< T > (ref ItemValue[] values, string key, T value)
 
static T GetValue< T > (ItemValue[] values, string key, T defaultValue)
 

Public Attributes

string Key
 
string Value