9 src.WriteToContext(ctx);
10 dst.WriteToContext(ctx);
41 src1.WriteToContext(ctx);
42 src2.WriteToContext(ctx);
43 dst1.WriteToContext(ctx);
44 dst2.WriteToContext(ctx);
45 ctx.
Write(skippedSwap);
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());
void syncDebugPrint(string s)
static proto native bool ServerHandEvent(notnull Man player, notnull EntityAI item, ParamsWriteContext ctx)
hand event to clients
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...
script counterpart to engine's class Inventory
override bool IsServerSideOnly()
override string DumpToString()
override void WriteToContext(ParamsWriteContext ctx)
Abstracted event, not to be used, only inherited.
static string DumpToStringNullSafe(InventoryLocation loc)
static bool IsSyncLogEnable()
proto bool Write(void value_out)
proto native CGame GetGame()
Serializer ParamsWriteContext
void Error(string err)
Messagebox with error message.