MCPcopy Create free account
hub / github.com/The-Powder-Toy/The-Powder-Toy / RemoveComponents

Method RemoveComponents

src/lua/LuaScriptInterface.cpp:238–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238void CommandInterface::RemoveComponents()
239{
240 auto *lsi = static_cast<LuaScriptInterface *>(this);
241 for (auto &[ component, ref ] : lsi->grabbedComponents)
242 {
243 lsi->window->RemoveComponent(component->GetComponent());
244 ref.Clear();
245 component->owner_ref = ref;
246 component->SetParentWindow(nullptr);
247 }
248}
249
250void LuaGetProperty(lua_State *L, StructProperty property, intptr_t propertyAddress)
251{

Callers 1

~GameControllerMethod · 0.45

Calls 4

RemoveComponentMethod · 0.80
GetComponentMethod · 0.45
ClearMethod · 0.45
SetParentWindowMethod · 0.45

Tested by

no test coverage detected