MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / Destroy

Method Destroy

src/ScriptComponent.cpp:8–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using namespace RavEngine;
7
8bool RavEngine::ScriptComponent::Destroy()
9{
10 auto owner = getOwner();
11 if (!owner.isNull()) {
12 Ref<Entity>(owner)->Destroy();
13 return true;
14 }
15 return false;
16}
17
18bool RavEngine::ScriptComponent::IsInWorld()
19{

Callers

nothing calls this directly

Calls 2

getOwnerFunction · 0.85
isNullMethod · 0.45

Tested by

no test coverage detected