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

Method GetClassCount

src/newgrf_class_func.h:93–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 */
92template <typename Tspec, typename Tindex, Tindex Tmax>
93uint NewGRFClass<Tspec, Tindex, Tmax>::GetClassCount()
94{
95 return static_cast<uint>(NewGRFClass::classes.size());
96}
97
98/**
99 * Get the number of classes available to the user.

Callers 3

BuildPickerClassListMethod · 0.45
BuildPickerTypeListMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected