mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r16713) -Doc: document the Subsidy struct
This commit is contained in:
parent
973adfe98a
commit
aaeb53066d
|
@ -8,12 +8,12 @@
|
||||||
#include "cargo_type.h"
|
#include "cargo_type.h"
|
||||||
#include "company_type.h"
|
#include "company_type.h"
|
||||||
|
|
||||||
|
/** Struct about subsidies, both offered and awarded */
|
||||||
struct Subsidy {
|
struct Subsidy {
|
||||||
CargoID cargo_type;
|
CargoID cargo_type; ///< Cargo type involved in this subsidy, CT_INVALID for invalid subsidy
|
||||||
byte age;
|
byte age; ///< Subsidy age; < 12 is unawarded, >= 12 is awarded
|
||||||
/* from and to can either be TownID, StationID or IndustryID */
|
uint16 from; ///< Index of source. Either TownID, IndustryID or StationID, when awarded.
|
||||||
uint16 from;
|
uint16 to; ///< Index of destination. Either TownID, IndustryID or StationID, when awarded.
|
||||||
uint16 to;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern Subsidy _subsidies[MAX_COMPANIES];
|
extern Subsidy _subsidies[MAX_COMPANIES];
|
||||||
|
|
Loading…
Reference in New Issue