MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getLinkedListOffset

Function getLinkedListOffset

src/OpenLoco/src/Entities/EntityManager.cpp:28–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 static auto& rawListCounts() { return getGameState().entityListCounts; }
27
28 constexpr uint8_t getLinkedListOffset(EntityListType list)
29 {
30 return enumValue(list) * static_cast<uint8_t>(sizeof(uint16_t));
31 }
32
33 constexpr size_t getLinkedListIndex(uint8_t offset)
34 {

Callers 2

resetFunction · 0.85
moveEntityToListFunction · 0.85

Calls 1

enumValueFunction · 0.85

Tested by

no test coverage detected