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

Method GetTypeCount

src/object_base.h:67–71  ·  view source on GitHub ↗

* Get the count of objects for this type. * @param type ObjectType to query * @pre type < NUM_OBJECTS */

Source from the content-addressed store, hash-verified

65 * @pre type < NUM_OBJECTS
66 */
67 static inline uint16_t GetTypeCount(ObjectType type)
68 {
69 assert(type < NUM_OBJECTS);
70 return Object::counts[type];
71 }
72
73 /** Resets object counts. */
74 static inline void ResetTypeCounts()

Callers 2

BuildPickerTypeListMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected