MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / copySubstitutionsFrom

Method copySubstitutionsFrom

Engine/source/console/simDatablock.cpp:163–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void SimDataBlock::copySubstitutionsFrom(SimDataBlock* other)
164{
165 clear_substitutions();
166 if (!other)
167 return;
168
169 for (S32 i = 0; i < other->substitutions.size(); i++)
170 {
171 if (other->substitutions[i])
172 {
173 SubstitutionStatement* subs = other->substitutions[i];
174 substitutions.push_back(new SubstitutionStatement(subs->mSlot, subs->mIdx, subs->mValue));
175 }
176 }
177}
178
179
180// This is the method that evaluates any substitution statements on a datablock and does the

Callers 2

setInheritFromMethod · 0.80
execMethod · 0.80

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected