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

Method PostRepatch

Source/Prefab.cpp:187–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void Prefab::PostRepatch(PatchCableSource* cableSource, bool fromUserClick)
188{
189 if (cableSource == mRemoveModuleCable)
190 {
191 IDrawableModule* module = dynamic_cast<IDrawableModule*>(cableSource->GetTarget());
192 if (module)
193 {
194 if (VectorContains(module, mModuleContainer.GetModules()))
195 {
196 GetOwningContainer()->TakeModule(module);
197 GetOwningContainer()->MoveToFront(this);
198 }
199 }
200 cableSource->Clear();
201 }
202}
203
204void Prefab::GetModuleDimensions(float& width, float& height)
205{

Callers 3

SetPatchCableTargetMethod · 0.45
RemovePatchCableMethod · 0.45
LoadStateMethod · 0.45

Calls 5

VectorContainsFunction · 0.85
TakeModuleMethod · 0.80
GetTargetMethod · 0.45
MoveToFrontMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected