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)
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)
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. When called on client, RPC is evaluated on server; When called on ser...
proto bool Write(void value_out)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Serializer ParamsWriteContext
void Error(string err)
Messagebox with error message.