MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / isEqualTo

Method isEqualTo

radiantcore/particles/ParticleDef.cpp:114–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114bool ParticleDef::isEqualTo(const Ptr& other)
115{
116 // Compare depth hack flag
117 if (getDepthHack() != other->getDepthHack()) return false;
118
119 // Compare number of stages
120 if (getNumStages() != other->getNumStages()) return false;
121
122 // Compare each stage
123 for (std::size_t i = 0; i < getNumStages(); ++i)
124 {
125 if (!getStage(i)->isEqualTo(other->getStage(i))) return false;
126 }
127
128 // All checks passed => equal
129 return true;
130}
131
132void ParticleDef::onBeginParsing()
133{

Callers

nothing calls this directly

Calls 3

getDepthHackMethod · 0.80
getStageMethod · 0.80
getNumStagesMethod · 0.45

Tested by

no test coverage detected