|
OpenTTD Source 20251104-master-g3befbdd52f
|
Private Member Functions | |
| bool | IsInspectable (uint) const override |
| Is the item with the given index inspectable? | |
| uint | GetParent (uint) const override |
| Get the parent "window_number" of a given instance. | |
| const void * | GetInstance (uint) const override |
| Get the instance given an index. | |
| const void * | GetSpec (uint) const override |
| Get (NewGRF) specs given an index. | |
| std::string | GetName (uint index) const override |
| Get the name of this item. | |
| uint32_t | GetGRFID (uint) const override |
| Get the GRFID of the file that includes this item. | |
| std::span< const BadgeID > | GetBadges (uint index) const override |
| Get the list of badges of this item. | |
| uint | Resolve (uint index, uint var, uint param, bool &avail) const override |
| Resolve (action2) variable for a given index. | |
Additional Inherited Members | |
Public Member Functions inherited from NIHelper | |
| virtual | ~NIHelper ()=default |
| Silence a warning. | |
| virtual bool | PSAWithParameter () const |
| Used to decide if the PSA needs a parameter or not. | |
| virtual const std::span< int32_t > | GetPSA (uint index, uint32_t grfid) const |
| Gets the span containing the persistent storage. | |
Definition at line 457 of file newgrf_debug_data.h.
|
inlineoverrideprivatevirtual |
Get the list of badges of this item.
| index | index to check. |
Implements NIHelper.
Definition at line 464 of file newgrf_debug_data.h.
References GetRailType(), and GetRailTypeInfo().
|
inlineoverrideprivatevirtual |
Get the GRFID of the file that includes this item.
| index | index to check. |
Implements NIHelper.
Definition at line 463 of file newgrf_debug_data.h.
|
inlineoverrideprivatevirtual |
Get the instance given an index.
| index | the index to get the instance for. |
Implements NIHelper.
Definition at line 460 of file newgrf_debug_data.h.
|
inlineoverrideprivatevirtual |
Get the name of this item.
| index | the index to get the name for. |
Implements NIHelper.
Definition at line 462 of file newgrf_debug_data.h.
References GetString(), and INVALID_STRING_ID.
|
inlineoverrideprivatevirtual |
Get the parent "window_number" of a given instance.
| index | the instance to get the parent for. |
Implements NIHelper.
Definition at line 459 of file newgrf_debug_data.h.
|
inlineoverrideprivatevirtual |
Get (NewGRF) specs given an index.
| index | the index to get the specs for for. |
Implements NIHelper.
Definition at line 461 of file newgrf_debug_data.h.
|
inlineoverrideprivatevirtual |
Is the item with the given index inspectable?
| index | the index to check. |
Implements NIHelper.
Definition at line 458 of file newgrf_debug_data.h.
|
inlineoverrideprivatevirtual |
Resolve (action2) variable for a given index.
| index | The (instance) index to resolve the variable for. |
| var | The variable to actually resolve. |
| param | The varaction2 0x60+x parameter to pass. |
| avail | Return whether the variable is available. |
Implements NIHelper.
Definition at line 466 of file newgrf_debug_data.h.
References RailTypeResolverObject::GetScope(), ScopeResolver::GetVariable(), TCX_NORMAL, and VSG_SCOPE_SELF.