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

Method TestMeshSwapFlags

TombEngine/Game/items.cpp:119–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119bool ItemInfo::TestMeshSwapFlags(unsigned int flags)
120{
121 for (int i = 0; i < Model.MeshIndex.size(); i++)
122 {
123 if (flags & (1 << i))
124 {
125 if (Model.MeshIndex[i] == (Model.BaseMesh + i))
126 return false;
127 }
128 }
129
130 return true;
131}
132
133bool ItemInfo::TestMeshSwapFlags(const std::vector<unsigned int>& flags)
134{

Callers 5

Mafia2ControlFunction · 0.80
RomanStatueControlFunction · 0.80
GuideControlFunction · 0.80
BaddyControlFunction · 0.80
VonCroyControlFunction · 0.80

Calls 3

ToPackedBitsMethod · 0.80
sizeMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected