| 968 | } |
| 969 | |
| 970 | int AFCKernelModule::OnSyncContainerRemove( |
| 971 | const AFGUID& self, const uint32_t index, const ArkDataMask mask, uint32_t src_index) |
| 972 | { |
| 973 | // find parent entity |
| 974 | auto pEntity = GetEntity(self); |
| 975 | if (pEntity == nullptr) |
| 976 | { |
| 977 | ARK_LOG_ERROR("sync container failed entity do no exist, self={}", self); |
| 978 | return -1; |
| 979 | } |
| 980 | |
| 981 | AFMsg::pb_container_remove pb_data; |
| 982 | pb_data.set_id(self); |
| 983 | pb_data.set_index(index); |
| 984 | pb_data.set_entity_index(src_index); |
| 985 | |
| 986 | SendSyncMsg(self, mask, pb_data); |
| 987 | |
| 988 | return 0; |
| 989 | } |
| 990 | |
| 991 | int AFCKernelModule::OnSyncContainerDestroy( |
| 992 | const AFGUID& self, const uint32_t index, const ArkDataMask mask, uint32_t src_index) |
nothing calls this directly
no outgoing calls
no test coverage detected