| 1232 | } |
| 1233 | |
| 1234 | int AFCKernelModule::LogObjectData(const AFGUID& guid) |
| 1235 | { |
| 1236 | auto entity = GetEntity(guid); |
| 1237 | if (entity == nullptr) |
| 1238 | { |
| 1239 | return -1; |
| 1240 | } |
| 1241 | |
| 1242 | auto pNodeManager = GetNodeManager(entity); |
| 1243 | ARK_ASSERT_RET_VAL(pNodeManager != nullptr, -1); |
| 1244 | |
| 1245 | auto pTableManager = GetTableManager(entity); |
| 1246 | ARK_ASSERT_RET_VAL(pTableManager != nullptr, -1); |
| 1247 | |
| 1248 | auto& node_list = pNodeManager->GetDataList(); |
| 1249 | for (auto& iter : node_list) |
| 1250 | { |
| 1251 | auto pData = iter.second; |
| 1252 | if (!pData) |
| 1253 | { |
| 1254 | continue; |
| 1255 | } |
| 1256 | |
| 1257 | ARK_LOG_TRACE("Player[{}] Node[{}] Value[{}]", guid, pData->GetName(), pData->ToString()); |
| 1258 | } |
| 1259 | |
| 1260 | auto& table_list = pTableManager->GetTableList(); |
| 1261 | for (auto& iter : table_list) |
| 1262 | { |
| 1263 | auto pTable = iter.second; |
| 1264 | if (!pTable) |
| 1265 | { |
| 1266 | continue; |
| 1267 | } |
| 1268 | |
| 1269 | for (auto pRow = pTable->First(); pRow != nullptr; pRow = pTable->Next()) |
| 1270 | { |
| 1271 | auto pRowNodeManager = GetNodeManager(pRow); |
| 1272 | if (!pRowNodeManager) |
| 1273 | { |
| 1274 | continue; |
| 1275 | } |
| 1276 | |
| 1277 | auto& row_data_list = pRowNodeManager->GetDataList(); |
| 1278 | for (auto& iter_row : row_data_list) |
| 1279 | { |
| 1280 | auto pNode = iter_row.second; |
| 1281 | if (!pNode) |
| 1282 | { |
| 1283 | continue; |
| 1284 | } |
| 1285 | |
| 1286 | ARK_LOG_TRACE("Player[{}] Table[{}] Row[{}] Col[{}] Value[{}]", guid, pTable->GetName(), pRow->GetRow(), |
| 1287 | pNode->GetName(), pNode->ToString()); |
| 1288 | } |
| 1289 | } |
| 1290 | } |
| 1291 | |