MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / IsInMapInstance

Method IsInMapInstance

src/plugin/kernel/src/AFCMapModule.cpp:48–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48bool AFCMapModule::IsInMapInstance(const AFGUID& self)
49{
50 auto pEntity = m_pKernelModule->GetEntity(self);
51 if (pEntity != nullptr)
52 {
53 return (pEntity->GetInt32(AFEntityMetaBaseEntity::map_inst_id()) < 0);
54 }
55 else
56 {
57 ARK_LOG_ERROR("Cannot find entity, id = {}", self);
58 return false;
59 }
60}
61
62bool AFCMapModule::ExistMap(const int map_id)
63{

Callers 1

LogInfoMethod · 0.80

Calls 2

GetEntityMethod · 0.80
GetInt32Method · 0.45

Tested by

no test coverage detected