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

Function get

src/OpenLoco/src/MessageManager.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 Message* get(MessageId id)
34 {
35 if (enumValue(id) >= Limits::kMaxMessages)
36 {
37 return nullptr;
38 }
39 return &rawMessages()[enumValue(id)];
40 }
41
42 MessageId getActiveIndex() { return getGameState().activeMessageIndex; }
43 void setActiveIndex(const MessageId newIndex) { getGameState().activeMessageIndex = newIndex; }

Callers 15

isMusicPlayingFunction · 0.70
makeSelectedPlaylistFunction · 0.70
chooseNextMusicTrackFunction · 0.70
skipCurrentTrackFunction · 0.70
disableMusicFunction · 0.70
enableMusicFunction · 0.70
goToNextStepFunction · 0.70
startFunction · 0.70
postFunction · 0.70
clearActiveMessageFunction · 0.70
removeFunction · 0.70

Calls 1

enumValueFunction · 0.85

Tested by

no test coverage detected