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

Method OnSyncContainerSwap

src/plugin/kernel/src/AFCKernelModule.cpp:1012–1032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1010}
1011
1012int AFCKernelModule::OnSyncContainerSwap(
1013 const AFGUID& self, const uint32_t index, const ArkDataMask mask, uint32_t src_index, uint32_t dest_index)
1014{
1015 // find parent entity
1016 auto pEntity = GetEntity(self);
1017 if (pEntity == nullptr)
1018 {
1019 ARK_LOG_ERROR("sync container failed entity do no exist, self={}", self);
1020 return -1;
1021 }
1022
1023 AFMsg::pb_container_swap pb_data;
1024 pb_data.set_id(self);
1025 pb_data.set_index(index);
1026 pb_data.set_src_index(src_index);
1027 pb_data.set_dest_index(dest_index);
1028
1029 SendSyncMsg(self, mask, pb_data);
1030
1031 return 0;
1032}
1033
1034bool AFCKernelModule::DelayTableToPB(
1035 const AFDelaySyncTable& table, const uint32_t index, AFMsg::pb_delay_entity& data, AFMsg::pb_entity_data& pb_entity)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected