![]() |
naev 0.12.6
|
Internal look up table for ship stats. More...
Data Fields | |
| ShipStatsType | type |
| const char * | name |
| const char * | display |
| const char * | unit |
| StatDataType | data |
| int | inverted |
| size_t | offset |
Internal look up table for ship stats.
Makes it much easier to work with stats at the cost of some minor performance.
Definition at line 36 of file shipstats.c.
| StatDataType ShipStatsLookup::data |
Type of data for the stat.
Definition at line 43 of file shipstats.c.
| const char* ShipStatsLookup::display |
Display name for visibility by player.
Definition at line 41 of file shipstats.c.
| int ShipStatsLookup::inverted |
Indicates whether the good value is inverted, by default positive is good, with this set negative is good.
Definition at line 44 of file shipstats.c.
| const char* ShipStatsLookup::name |
Name to look into XML for, must match name in the structure.
Definition at line 40 of file shipstats.c.
| size_t ShipStatsLookup::offset |
Stores the byte offset in the structure.
Definition at line 49 of file shipstats.c.
| ShipStatsType ShipStatsLookup::type |
Type of the stat.
Definition at line 38 of file shipstats.c.
| const char* ShipStatsLookup::unit |
Unit of the stat.
Definition at line 42 of file shipstats.c.