MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetInspectWindowNumber

Function GetInspectWindowNumber

src/newgrf_debug_gui.cpp:72–76  ·  view source on GitHub ↗

* Get the window number for the inspect window given a * feature and index. * @param feature The feature we want to inspect. * @param index The index/identifier of the feature to inspect. * @return the InspectWindow (Window)Number */

Source from the content-addressed store, hash-verified

70 * @return the InspectWindow (Window)Number
71 */
72static inline uint GetInspectWindowNumber(GrfSpecFeature feature, uint index)
73{
74 assert((index >> 24) == 0);
75 return (feature << 24) | index;
76}
77
78static inline uint GetInspectWindowNumber(GrfSpecFeature feature, ConvertibleThroughBase auto index) { return GetInspectWindowNumber(feature, index.base()); }
79

Callers 13

ShowNewGRFInspectWindowFunction · 0.85
IsNewGRFInspectableFunction · 0.85
GetParentMethod · 0.85
GetParentMethod · 0.85
GetParentMethod · 0.85
GetParentMethod · 0.85
GetParentMethod · 0.85
GetParentMethod · 0.85
GetParentMethod · 0.85
GetParentMethod · 0.85

Calls 1

baseMethod · 0.45

Tested by

no test coverage detected