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());
111 src.WriteToContext(ctx);
void syncDebugPrint(string s)
script counterpart to engine's class Inventory
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 ServerHandEvent(notnull Man player, notnull EntityAI item, ParamsWriteContext ctx)
hand event to clients
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...
Abstracted event, not to be used, only inherited.
override string DumpToString()
override void WriteToContext(ParamsWriteContext ctx)
override bool IsServerSideOnly()
static string DumpToStringNullSafe(InventoryLocation loc)
Serialization general interface. Serializer API works with:
proto bool Write(void value_out)
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.