76 e.WriteToContext(
ctx);
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());
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 ServerLocationSyncMoveEntity(Man player, notnull EntityAI item, ParamsWriteContext ctx)
synchronously removes item from current inventory location and adds it to destination + sync via inve...
static proto native bool ServerHandEvent(notnull Man player, notnull EntityAI item, ParamsWriteContext ctx)
hand event to clients
Abstracted event, not to be used, only inherited.
static string DumpToStringNullSafe(InventoryLocation loc)
static bool IsSyncLogEnable()
Serialization general interface. Serializer API works with:
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.