public void OnOpenBook(Character sender)
 {
     Rag2Collection items = new Rag2Collection();
     foreach (Rag2Item c in Singleton.Itemdrops.FindItemDropsById(this.ModelId, sender._DropRate))
         items.Add(c);
     this.loottable.Add(sender.id, items);
 }
        public Rag2Collection GetLootList(Character target)
        {
            Rag2Collection items;
            if (!loottable.TryGetValue(target.id, out items))
            {
                items = new Rag2Collection();
            }

            return items;
        }
 public DataStorageCollection(uint characterId)
 {
     owner = characterId;
     collection = new Rag2Collection();
 }
 public DataStorageCollection(Character target)
 {
     owner = target.ModelId;
     collection = target.STORAGE;
     //sortmode = target.
 }
 public DataInventoryCollection(uint characterId, Rag2Collection container)
 {
     owner = characterId;
     collection = container;
 }
 public DataInventoryCollection(Character target)
 {
     owner = target.ModelId;
     collection = target.container;
     //sortmode = target.
 }
 private LootCollection()
 {
     this.lootlist = new Rag2Collection();
 }
 void IDisposable.Dispose()
 {
     GC.SuppressFinalize(this);
     isdisposed = true;
     lootlist = null;
 }
 public void Dispose()
 {
     isdisposed = true;
     lootlist = null;
 }