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

Method OnSyncContainerDestroy

src/plugin/kernel/src/AFCKernelModule.cpp:991–1010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989}
990
991int 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
1012int AFCKernelModule::OnSyncContainerSwap(
1013 const AFGUID& self, const uint32_t index, const ArkDataMask mask, uint32_t src_index, uint32_t dest_index)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected