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

Method Set

TombEngine/Specific/Structures/BitField.cpp:88–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87
88 void BitField::Set(unsigned int bitID)
89 {
90 if constexpr (DEBUG_BUILD)
91 {
92 if (!IsBitIDCorrect(bitID))
93 return;
94 }
95
96 unsigned int localBitId = bitID % CHUNK_SIZE;
97 unsigned int chunkID = bitID / CHUNK_SIZE;
98 _chunks[chunkID] |= (ChunkType)1 << localBitId;
99 }
100
101 void BitField::Set(const std::vector<unsigned int>& bitIds)
102 {

Callers 15

DrawDebugInfoMethod · 0.45
KayakPaddlePutFunction · 0.45
ControlSwingingBladeFunction · 0.45
InitializeAutoGunFunction · 0.45
ControlAutoGunFunction · 0.45
ElectricalLightControlFunction · 0.45
ControlSentryGunFunction · 0.45
InitializeMotorbikeFunction · 0.45
MotorbikeUserControlFunction · 0.45
MotorbikeControlFunction · 0.45
InitializeJeepFunction · 0.45
JeepUserControlFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestMeshSwapFlagsMethod · 0.36