private static void IncomingPackets_ContainerContentsEvent(int client, ItemCollection container) { Item i; if (ClientInfoCollection.GetItem(client, container.Serial, out i)) { i.Container = container; } else { Item newItem = new Item(container.Serial); newItem.Container = container; ClientInfoCollection.AddItem(client, newItem); } }
private static void IncomingPackets_WorldItemAddedEvent(int client, Item item) { ClientInfoCollection.AddItem(client, item); }