| 1293 | } |
| 1294 | |
| 1295 | bool AFCKernelModule::LogInfo(const AFGUID& id) |
| 1296 | { |
| 1297 | std::shared_ptr<AFIEntity> pEntity = GetEntity(id); |
| 1298 | if (pEntity == nullptr) |
| 1299 | { |
| 1300 | ARK_LOG_ERROR("Cannot find entity, id = {}", id); |
| 1301 | return false; |
| 1302 | } |
| 1303 | |
| 1304 | if (m_pMapModule->IsInMapInstance(id)) |
| 1305 | { |
| 1306 | int map_id = pEntity->GetMapID(); |
| 1307 | |
| 1308 | ARK_LOG_INFO("----------child object list-------- , id = {} mapid = {}", id, map_id); |
| 1309 | AFCDataList entity_list; |
| 1310 | int online_count = m_pMapModule->GetMapOnlineList(map_id, entity_list); |
| 1311 | for (int i = 0; i < online_count; ++i) |
| 1312 | { |
| 1313 | AFGUID target_entity_id = entity_list.Int64(i); |
| 1314 | ARK_LOG_INFO("id = {} mapid = {}", target_entity_id, map_id); |
| 1315 | } |
| 1316 | } |
| 1317 | else |
| 1318 | { |
| 1319 | ARK_LOG_INFO("---------print object start--------, id = {}", id); |
| 1320 | ARK_LOG_INFO("---------print object end--------, id = {}", id); |
| 1321 | } |
| 1322 | |
| 1323 | return true; |
| 1324 | } |
| 1325 | |
| 1326 | //--------------entity to pb db data------------------ |
| 1327 | bool AFCKernelModule::EntityToDBData(const AFGUID& self, AFMsg::pb_db_entity& pb_data) |
nothing calls this directly
no test coverage detected