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

Method SetIndex

src/source_type.h:48–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47 constexpr void MakeInvalid() { this->id = Source::Invalid; }
48 constexpr void SetIndex(SourceID index) { this->id = index; }
49 constexpr void SetIndex(ConvertibleThroughBase auto index) { this->id = index.base(); }
50
51 constexpr bool IsValid() const noexcept { return this->id != Source::Invalid; }

Callers 8

VehicleGroupWindowMethod · 0.45
OnInvalidateDataMethod · 0.45
DeleteGroupCallbackMethod · 0.45
OnClickMethod · 0.45
SelectGroupMethod · 0.45
OnInvalidateDataMethod · 0.45
AfterLoadGameFunction · 0.45

Calls 1

baseMethod · 0.45

Tested by

no test coverage detected