|
OpenTTD Source 20260721-master-g25ec12c62d
|
Data structure to store the allowed id/type combinations for action 14. More...
Public Types | |
| using | Span = std::pair<const AllowedSubtags *, const AllowedSubtags *> |
| Custom 'span' of subtags. | |
Data Fields | |
| NodeID | id |
| The identifier for this node. | |
| std::variant< DataHandler, TextHandler, BranchHandler, Span > | handler |
| The handler for this node. | |
Data structure to store the allowed id/type combinations for action 14.
The data can be represented as a tree with 3 types of nodes:
Definition at line 258 of file newgrf_act14.cpp.
| using AllowedSubtags::Span = std::pair<const AllowedSubtags *, const AllowedSubtags *> |
Custom 'span' of subtags.
Required because std::span with an incomplete type is UB.
Definition at line 260 of file newgrf_act14.cpp.
| std::variant<DataHandler, TextHandler, BranchHandler, Span> AllowedSubtags::handler |
The handler for this node.
Definition at line 263 of file newgrf_act14.cpp.
| NodeID AllowedSubtags::id |
The identifier for this node.
Definition at line 262 of file newgrf_act14.cpp.