MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / Init

Method Init

Source/EffectChain.cpp:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void EffectChain::Init()
58{
59 IDrawableModule::Init();
60
61 mEffectTypesToSpawn = TheSynth->GetEffectFactory()->GetSpawnableEffects();
62 mEffectSpawnList->SetUnknownItemString("add effect:");
63 for (int i = 0; i < mEffectTypesToSpawn.size(); ++i)
64 mEffectSpawnList->AddLabel(mEffectTypesToSpawn[i].c_str(), i);
65
66 mInitialized = true;
67}
68
69void EffectChain::AddEffect(std::string type, std::string desiredName, bool onTheFly)
70{

Callers 1

AddEffectMethod · 0.45

Calls 5

GetSpawnableEffectsMethod · 0.80
GetEffectFactoryMethod · 0.80
SetUnknownItemStringMethod · 0.80
sizeMethod · 0.80
AddLabelMethod · 0.45

Tested by

no test coverage detected