9 src.WriteToContext(ctx);
10 dst.WriteToContext(ctx);
19 SerializeMove(ctx, type, src, dst);
30 SerializeMove(ctx, type, src, dst);
41 src1.WriteToContext(ctx);
42 src2.WriteToContext(ctx);
43 dst1.WriteToContext(ctx);
44 dst2.WriteToContext(ctx);
45 ctx.Write(skippedSwap);
54 SerializeSwap(ctx, src1, src2, dst1, dst2, skippedSwap);
65 SerializeSwap(ctx, src1, src2, dst1, dst2, skippedSwap);
76 e.WriteToContext(ctx);
85 SerializeHandEvent(ctx, e);
90 static void SendServerHandEventViaInventoryCommand(notnull Man player,
HandEventBase e)
95 if (e.IsServerSideOnly())
96 Error(
"[syncinv] SendServerHandEvent - called on server side event only, e=" + e.DumpToString());
98 Error(
"[syncinv] SendServerHandEvent - called on living thing.. server hand command is only for dead people, e=" + e.DumpToString());
99 if (
LogManager.IsSyncLogEnable())
syncDebugPrint(
"[syncinv] SendServerHandEventViaInventoryCommand SendInputUserDataHandEvent e=" + e.DumpToString());
101 SerializeHandEvent(ctx, e);
static proto native bool ServerLocationSwap(notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2, ParamsWriteContext ctx)
swaps two entities
static proto native bool ServerLocationSyncMoveEntity(Man player, notnull EntityAI item, ParamsWriteContext ctx)
synchronously removes item from current inventory location and adds it to destination + sync via inve...