9 src.WriteToContext(ctx);
10 dst.WriteToContext(ctx);
27 item.GetInventory().GetCurrentInventoryLocation(il);
34 int nItems = items.Count();
37 for (
int i = 0; i < nItems; ++i)
47 int nItems = items.Count();
49 for (
int i = 0; i < nItems; i++)
54 ctx.
Send(player,
ERPCs.RPC_ITEM_REPAIR,
false, player.GetIdentity());
74 src1.WriteToContext(ctx);
75 src2.WriteToContext(ctx);
76 dst1.WriteToContext(ctx);
77 dst2.WriteToContext(ctx);
78 ctx.
Write(skippedSwap);
129 Error(
"[syncinv] SendServerHandEvent - called on server side event only, e=" + e.
DumpToString());
130 if (player.IsAlive())
131 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 ServerHandEvent(notnull Man player, notnull EntityAI item, ParamsWriteContext ctx)
static proto native bool ServerLocationSwap(notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2, ParamsWriteContext ctx)
static proto native bool ServerLocationSyncMoveEntity(Man player, notnull EntityAI item, ParamsWriteContext ctx)
Abstracted event, not to be used, only inherited.
override string DumpToString()
override void WriteToContext(ParamsWriteContext ctx)
override bool IsServerSideOnly()
static string DumpToStringNullSafe(InventoryLocation loc)
bool WriteToContext(ParamsWriteContext ctx)
static bool IsSyncLogEnable()
proto native void Send(Object target, int rpc_type, bool guaranteed, PlayerIdentity recipient=NULL)
Initiate remote procedure call.
proto bool Write(void value_out)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Serializer ParamsWriteContext
void Error(string err)
Messagebox with error message.