| 989 | } |
| 990 | |
| 991 | int AFCKernelModule::OnSyncContainerDestroy( |
| 992 | const AFGUID& self, const uint32_t index, const ArkDataMask mask, uint32_t src_index) |
| 993 | { |
| 994 | // find parent entity |
| 995 | auto pEntity = GetEntity(self); |
| 996 | if (pEntity == nullptr) |
| 997 | { |
| 998 | ARK_LOG_ERROR("sync container failed entity do no exist, self={}", self); |
| 999 | return -1; |
| 1000 | } |
| 1001 | |
| 1002 | AFMsg::pb_container_destroy pb_data; |
| 1003 | pb_data.set_id(self); |
| 1004 | pb_data.set_index(index); |
| 1005 | pb_data.set_entity_index(src_index); |
| 1006 | |
| 1007 | SendSyncMsg(self, mask, pb_data); |
| 1008 | |
| 1009 | return 0; |
| 1010 | } |
| 1011 | |
| 1012 | int AFCKernelModule::OnSyncContainerSwap( |
| 1013 | const AFGUID& self, const uint32_t index, const ArkDataMask mask, uint32_t src_index, uint32_t dest_index) |
nothing calls this directly
no outgoing calls
no test coverage detected