public static void SendStatFullUpdate(this PNetR.NetworkView view, Stats stat, StatValue value) { var net = default(StatNetData); view.Rpc(4, 51, RpcMode.AllOrdered, net.Fill(stat, value.Max)); view.Rpc(4, 50, RpcMode.AllOrdered, net.Fill(stat, value.Current)); }
public static void WornItems(this PNetR.NetworkView view, PNetR.Player player, CharData data) { view.Rpc(7, 4, player, data.SerWears); }
public static void SetCombat(this PNetR.NetworkView view, PNetR.Player player, bool inCombat) { view.Rpc <BooleanSerializer>(4, 55, player, inCombat); }
public static void PerformSkill(this PNetR.NetworkView view, TargetEntry target) { view.Rpc(5, 61, RpcMode.AllOrdered, target); }
public static void UpdateSlot(this PNetR.NetworkView view, InventorySlot slot, int index) { view.Rpc(7, 6, RpcMode.OwnerOrdered, slot, index); }
public static void SetInventory(this PNetR.NetworkView view, CharData data) { view.Rpc(7, 5, RpcMode.OwnerOrdered, data.SerInventory); }
public static void UpdateWornItems(this PNetR.NetworkView view, CharData data) { view.Rpc(7, 4, RpcMode.AllOrdered, data.SerWears); }
public static void Teleport(this PNetR.NetworkView view, Vector3 position) { view.Rpc <Vector3Serializer>(2, 201, RpcMode.AllOrdered, position); }
public static void WearItem(this PNetR.NetworkView view, InventoryItem item, byte slot, WearablePosition usedSlots) { view.Rpc(7, 8, RpcMode.AllOrdered, item, slot, (int)usedSlots); }
public static void UnwearItem(this PNetR.NetworkView view, byte slot, WearablePosition usedSlots) { view.Rpc(7, 9, RpcMode.AllOrdered, slot, (int)usedSlots); }
public static void RequestTrade(this PNetR.NetworkView view, ushort id) { view.Rpc <UInt16Serializer>(9, 1, RpcMode.OwnerOrdered, id); }
public static void SetBits(this PNetR.NetworkView view, int bits) { view.Rpc <Int32Serializer>(7, 16, RpcMode.OwnerOrdered, bits); }
public static void Lock(this PNetR.NetworkView view, bool state) { view.Rpc <BooleanSerializer>(2, 204, RpcMode.OwnerOrdered, state); }
public static void FailedTrade(this PNetR.NetworkView view) { view.Rpc(9, 5, RpcMode.OwnerOrdered); }
public static void CloseTrade(this PNetR.NetworkView view) { view.Rpc(9, 4, RpcMode.OwnerOrdered); }
public static void FaintPony(this PNetR.NetworkView view) { view.Rpc(4, 57, RpcMode.AllUnordered); }