MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / ReadCount

Function ReadCount

TombEngine/Specific/level.cpp:166–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166int ReadCount(int maxValue = SQUARE(1024))
167{
168 int count = ReadInt32();
169
170 if (count < 0 || count > maxValue)
171 throw std::exception("Level data block has incorrect size. Level version is probably outdated.");
172
173 return count;
174}
175
176void ReadBytes(void* dest, int count)
177{

Callers 15

LoadItemsFunction · 0.85
LoadObjectsFunction · 0.85
LoadCamerasFunction · 0.85
LoadTexturesFunction · 0.85
LoadDynamicRoomDataFunction · 0.85
LoadStaticRoomDataFunction · 0.85
LoadSoundSourcesFunction · 0.85
LoadAnimatedTexturesFunction · 0.85
LoadAIObjectsFunction · 0.85
LoadEventSetsFunction · 0.85
LoadSamplesFunction · 0.85
LoadBoxesFunction · 0.85

Calls 1

ReadInt32Function · 0.85

Tested by

no test coverage detected