NGUI: Next-Gen UI kit  3.7.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
InvStat Class Reference

Inventory System statistic More...

Public Types

enum  Identifier {
  Identifier.Strength, Identifier.Constitution, Identifier.Agility, Identifier.Intelligence,
  Identifier.Damage, Identifier.Crit, Identifier.Armor, Identifier.Health,
  Identifier.Mana, Identifier.Other
}
 Customize this enum with statistics appropriate for your own game More...
 
enum  Modifier { Modifier.Added, Modifier.Percent }
 Formula for final stats: [sum of raw amounts] * (1 + [sum of percent amounts]) More...
 

Static Public Member Functions

static string GetName (Identifier i)
 Get the localized name of the stat. More...
 
static string GetDescription (Identifier i)
 Get the localized stat's description – adjust this to fit your own stats. More...
 
static int CompareArmor (InvStat a, InvStat b)
 Comparison function for sorting armor. Armor value will show up first, followed by damage. More...
 
static int CompareWeapon (InvStat a, InvStat b)
 Comparison function for sorting weapons. Damage value will show up first, followed by armor. More...
 

Public Attributes

Identifier id
 
Modifier modifier
 
int amount
 

Detailed Description

Inventory System statistic

Member Enumeration Documentation

Customize this enum with statistics appropriate for your own game

Enumerator
Strength 
Constitution 
Agility 
Intelligence 
Damage 
Crit 
Armor 
Health 
Mana 
Other 

Formula for final stats: [sum of raw amounts] * (1 + [sum of percent amounts])

Enumerator
Added 
Percent 

Member Function Documentation

static int InvStat.CompareArmor ( InvStat  a,
InvStat  b 
)
static

Comparison function for sorting armor. Armor value will show up first, followed by damage.

static int InvStat.CompareWeapon ( InvStat  a,
InvStat  b 
)
static

Comparison function for sorting weapons. Damage value will show up first, followed by armor.

static string InvStat.GetDescription ( Identifier  i)
static

Get the localized stat's description – adjust this to fit your own stats.

static string InvStat.GetName ( Identifier  i)
static

Get the localized name of the stat.

Member Data Documentation

int InvStat.amount
Identifier InvStat.id
Modifier InvStat.modifier

The documentation for this class was generated from the following file: