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

Method OnSyncContainerRemove

src/plugin/kernel/src/AFCKernelModule.cpp:970–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

968}
969
970int 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
991int AFCKernelModule::OnSyncContainerDestroy(
992 const AFGUID& self, const uint32_t index, const ArkDataMask mask, uint32_t src_index)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected