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

Method GetInstEntityList

src/plugin/kernel/src/AFCMapModule.cpp:306–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306bool AFCMapModule::GetInstEntityList(const int map_id, const int inst_id, AFIDataList& list)
307{
308 auto pMapInfo = map_infos_.find_value(map_id);
309 if (pMapInfo == nullptr)
310 {
311 return false;
312 }
313
314 auto pMapInstance = pMapInfo->GetInstance(inst_id);
315 if (pMapInstance == nullptr)
316 {
317 return false;
318 }
319
320 for (auto iter : pMapInstance->player_entities_)
321 {
322 list.AddInt64(iter.first);
323 }
324
325 for (auto iter : pMapInstance->other_entities_)
326 {
327 list.AddInt64(iter.first);
328 }
329
330 return true;
331}
332
333int AFCMapModule::GetEntityByDataNode(
334 const int map_id, const std::string& name, const AFIDataList& value_args, AFIDataList& list)

Callers 5

SendToViewMethod · 0.80
ProcessLeaveGroupMethod · 0.80
ProcessEnterGroupMethod · 0.80

Calls 3

GetInstanceMethod · 0.80
AddInt64Method · 0.80
find_valueMethod · 0.45

Tested by

no test coverage detected