naev 0.11.5
ShipStatsLookup Struct Reference

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
 

Detailed Description

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 34 of file shipstats.c.

Field Documentation

◆ data

StatDataType ShipStatsLookup::data

Type of data for the stat.

Definition at line 40 of file shipstats.c.

◆ display

const char* ShipStatsLookup::display

Display name for visibility by player.

Definition at line 38 of file shipstats.c.

◆ inverted

int ShipStatsLookup::inverted

Indicates whether the good value is inverted, by default positive is good, with this set negative is good.

Definition at line 41 of file shipstats.c.

◆ name

const char* ShipStatsLookup::name

Name to look into XML for, must match name in the structure.

Definition at line 37 of file shipstats.c.

◆ offset

size_t ShipStatsLookup::offset

Stores the byte offset in the structure.

Definition at line 46 of file shipstats.c.

◆ type

ShipStatsType ShipStatsLookup::type

Type of the stat.

Definition at line 36 of file shipstats.c.

◆ unit

const char* ShipStatsLookup::unit

Unit of the stat.

Definition at line 39 of file shipstats.c.


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