/// <summary> /// Notifies a single player of an item drop /// </summary> static public void Object_ItemDrop(Player player, Arena.ItemDrop drop) { //Create the notification packet SC_Items items = new SC_Items(); items.singleItem = drop; player._client.sendReliable(items); }
/// <summary> /// Notifies a player of item drops /// </summary> static public void Object_Items(Player p, IEnumerable <Arena.ItemDrop> drop) { //Create the notification packet SC_Items items = new SC_Items(); items.items = drop; //Route the packet p._client.sendReliable(items); }
/// <summary> /// Notifies a bunch of players of a new item drop /// </summary> static public void Object_ItemDrop(IEnumerable <Player> players, Arena.ItemDrop drop) { //Create the notification packet SC_Items items = new SC_Items(); items.singleItem = drop; //Route the packet foreach (Player p in players) { p._client.sendReliable(items); } }