|
NGUI: Next-Gen UI kit
3.7.2
|
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 |
Inventory System statistic
| enum InvStat.Identifier |
| enum InvStat.Modifier |
Comparison function for sorting armor. Armor value will show up first, followed by damage.
Comparison function for sorting weapons. Damage value will show up first, followed by armor.
|
static |
Get the localized stat's description – adjust this to fit your own stats.
|
static |
Get the localized name of the stat.
| int InvStat.amount |
| Identifier InvStat.id |
| Modifier InvStat.modifier |