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

Method GetWorld

src/ScriptComponent.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33Ref<RavEngine::World> RavEngine::ScriptComponent::GetWorld()
34{
35 auto owner = Ref<Entity>(getOwner());
36 if (owner.isNull()) {
37 return nullptr;
38 }
39 return owner->GetWorld();
40}

Callers

nothing calls this directly

Calls 2

getOwnerFunction · 0.85
isNullMethod · 0.45

Tested by

no test coverage detected