MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / isUniqueCell

Function isUniqueCell

TheForceEngine/TFE_Asset/spriteAsset_Jedi.cpp:248–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246 static std::vector<u32> s_cellOffsets;
247
248 bool isUniqueCell(u32 offset)
249 {
250 const size_t count = s_cellOffsets.size();
251 const u32* offsetList = s_cellOffsets.data();
252 for (u32 i = 0; i < count; i++)
253 {
254 if (offsetList[i] == offset) { return false; }
255 }
256 s_cellOffsets.push_back(offset);
257
258 return true;
259 }
260
261 void sprite_serializeSpritesAndFrames(Stream* stream)
262 {

Callers 2

getWaxFunction · 0.85
loadWaxFromMemoryFunction · 0.85

Calls 3

dataMethod · 0.80
push_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected