OpenTTD Source 20241224-master-gee860a5c8e
|
Data 'tables' for NewGRF debugging. More...
#include "../newgrf_house.h"
#include "../newgrf_engine.h"
#include "../newgrf_roadtype.h"
#include "../newgrf_roadstop.h"
Go to the source code of this file.
Data Structures | |
class | NIHVehicle |
class | NIHStation |
class | NIHHouse |
class | NIHIndustryTile |
class | NIHIndustry |
class | NIHObject |
class | NIHRailType |
class | NIHAirportTile |
class | NIHAirport |
class | NIHTown |
class | NIHRoadType |
class | NIHRoadStop |
Macros | |
#define | NIP(prop, base, variable, type, name) { name, [] (const void *b) -> const void * { return std::addressof(static_cast<const base *>(b)->variable); }, cpp_sizeof(base, variable), prop, type } |
#define | NIP_END() { nullptr, 0, 0, 0, 0 } |
#define | NIC(cb_id, base, variable, bit) { #cb_id, [] (const void *b) -> const void * { return std::addressof(static_cast<const base *>(b)->variable); }, cpp_sizeof(base, variable), bit, cb_id } |
#define | NIC_END() { nullptr, 0, 0, 0, 0 } |
#define | NIV(var, name) { name, var } |
#define | NIV_END() { nullptr, 0 } |
#define | NICV(cb_id, bit) NIC(cb_id, Engine, info.callback_mask, bit) |
#define | NICS(cb_id, bit) NIC(cb_id, StationSpec, callback_mask, bit) |
#define | NICH(cb_id, bit) NIC(cb_id, HouseSpec, callback_mask, bit) |
#define | NICIT(cb_id, bit) NIC(cb_id, IndustryTileSpec, callback_mask, bit) |
#define | NIP_PRODUCED_CARGO(prop, base, slot, type, name) { name, [] (const void *b) -> const void * { return std::addressof(static_cast<const base *>(b)->GetProduced(slot).cargo); }, sizeof(CargoID), prop, type } |
#define | NIP_ACCEPTED_CARGO(prop, base, slot, type, name) { name, [] (const void *b) -> const void * { return std::addressof(static_cast<const base *>(b)->GetAccepted(slot).cargo); }, sizeof(CargoID), prop, type } |
#define | NICI(cb_id, bit) NIC(cb_id, IndustrySpec, callback_mask, bit) |
#define | NICO(cb_id, bit) NIC(cb_id, ObjectSpec, callback_mask, bit) |
#define | NICAT(cb_id, bit) NIC(cb_id, AirportTileSpec, callback_mask, bit) |
#define | NICRS(cb_id, bit) NIC(cb_id, RoadStopSpec, callback_mask, bit) |
Data 'tables' for NewGRF debugging.
Definition in file newgrf_debug_data.h.
#define NIC | ( | cb_id, | |
base, | |||
variable, | |||
bit | |||
) | { #cb_id, [] (const void *b) -> const void * { return std::addressof(static_cast<const base *>(b)->variable); }, cpp_sizeof(base, variable), bit, cb_id } |
Definition at line 20 of file newgrf_debug_data.h.
#define NIC_END | ( | ) | { nullptr, 0, 0, 0, 0 } |
Definition at line 21 of file newgrf_debug_data.h.
#define NICAT | ( | cb_id, | |
bit | |||
) | NIC(cb_id, AirportTileSpec, callback_mask, bit) |
Definition at line 490 of file newgrf_debug_data.h.
#define NICH | ( | cb_id, | |
bit | |||
) | NIC(cb_id, HouseSpec, callback_mask, bit) |
Definition at line 163 of file newgrf_debug_data.h.
#define NICI | ( | cb_id, | |
bit | |||
) | NIC(cb_id, IndustrySpec, callback_mask, bit) |
Definition at line 319 of file newgrf_debug_data.h.
#define NICIT | ( | cb_id, | |
bit | |||
) | NIC(cb_id, IndustryTileSpec, callback_mask, bit) |
Definition at line 228 of file newgrf_debug_data.h.
#define NICO | ( | cb_id, | |
bit | |||
) | NIC(cb_id, ObjectSpec, callback_mask, bit) |
Definition at line 399 of file newgrf_debug_data.h.
#define NICRS | ( | cb_id, | |
bit | |||
) | NIC(cb_id, RoadStopSpec, callback_mask, bit) |
Definition at line 662 of file newgrf_debug_data.h.
#define NICS | ( | cb_id, | |
bit | |||
) | NIC(cb_id, StationSpec, callback_mask, bit) |
Definition at line 99 of file newgrf_debug_data.h.
#define NICV | ( | cb_id, | |
bit | |||
) | NIC(cb_id, Engine, info.callback_mask, bit) |
Definition at line 30 of file newgrf_debug_data.h.
#define NIP | ( | prop, | |
base, | |||
variable, | |||
type, | |||
name | |||
) | { name, [] (const void *b) -> const void * { return std::addressof(static_cast<const base *>(b)->variable); }, cpp_sizeof(base, variable), prop, type } |
Definition at line 16 of file newgrf_debug_data.h.
#define NIP_ACCEPTED_CARGO | ( | prop, | |
base, | |||
slot, | |||
type, | |||
name | |||
) | { name, [] (const void *b) -> const void * { return std::addressof(static_cast<const base *>(b)->GetAccepted(slot).cargo); }, sizeof(CargoID), prop, type } |
Definition at line 278 of file newgrf_debug_data.h.
#define NIP_END | ( | ) | { nullptr, 0, 0, 0, 0 } |
Definition at line 17 of file newgrf_debug_data.h.
#define NIP_PRODUCED_CARGO | ( | prop, | |
base, | |||
slot, | |||
type, | |||
name | |||
) | { name, [] (const void *b) -> const void * { return std::addressof(static_cast<const base *>(b)->GetProduced(slot).cargo); }, sizeof(CargoID), prop, type } |
Definition at line 277 of file newgrf_debug_data.h.
#define NIV | ( | var, | |
name | |||
) | { name, var } |
Definition at line 24 of file newgrf_debug_data.h.
#define NIV_END | ( | ) | { nullptr, 0 } |
Definition at line 25 of file newgrf_debug_data.h.
|
static |
Definition at line 491 of file newgrf_debug_data.h.
|
static |
Definition at line 164 of file newgrf_debug_data.h.
|
static |
Definition at line 320 of file newgrf_debug_data.h.
|
static |
Definition at line 229 of file newgrf_debug_data.h.
|
static |
Definition at line 400 of file newgrf_debug_data.h.
|
static |
Definition at line 663 of file newgrf_debug_data.h.
|
static |
Definition at line 100 of file newgrf_debug_data.h.
|
static |
Definition at line 31 of file newgrf_debug_data.h.
|
static |
Definition at line 563 of file newgrf_debug_data.h.
|
static |
Definition at line 514 of file newgrf_debug_data.h.
|
static |
Definition at line 218 of file newgrf_debug_data.h.
|
static |
Definition at line 389 of file newgrf_debug_data.h.
|
static |
Definition at line 268 of file newgrf_debug_data.h.
|
static |
Definition at line 444 of file newgrf_debug_data.h.
|
static |
Definition at line 480 of file newgrf_debug_data.h.
|
static |
Definition at line 713 of file newgrf_debug_data.h.
|
static |
Definition at line 671 of file newgrf_debug_data.h.
|
static |
Definition at line 648 of file newgrf_debug_data.h.
|
static |
Definition at line 153 of file newgrf_debug_data.h.
|
static |
Definition at line 613 of file newgrf_debug_data.h.
|
static |
Definition at line 655 of file newgrf_debug_data.h.
|
static |
Definition at line 89 of file newgrf_debug_data.h.
|
static |
Table with all NIFeatures.
Definition at line 721 of file newgrf_debug_data.h.
Referenced by GetFeature().
|
static |
Definition at line 280 of file newgrf_debug_data.h.
|
static |
Definition at line 524 of file newgrf_debug_data.h.
|
static |
Definition at line 183 of file newgrf_debug_data.h.
|
static |
Definition at line 337 of file newgrf_debug_data.h.
|
static |
Definition at line 241 of file newgrf_debug_data.h.
|
static |
Definition at line 411 of file newgrf_debug_data.h.
|
static |
Definition at line 454 of file newgrf_debug_data.h.
|
static |
Definition at line 622 of file newgrf_debug_data.h.
|
static |
Definition at line 111 of file newgrf_debug_data.h.
|
static |
Definition at line 573 of file newgrf_debug_data.h.
|
static |
Definition at line 51 of file newgrf_debug_data.h.