| 46 | } |
| 47 | |
| 48 | bool 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 | |
| 62 | bool AFCMapModule::ExistMap(const int map_id) |
| 63 | { |