Пример #1
0
 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);
 }
Пример #2
0
        public Rag2Collection GetLootList(Character target)
        {
            Rag2Collection items;
            if (!loottable.TryGetValue(target.id, out items))
            {
                items = new Rag2Collection();
            }

            return items;
        }
Пример #3
0
 public DataStorageCollection(uint characterId)
 {
     owner = characterId;
     collection = new Rag2Collection();
 }
Пример #4
0
 public DataStorageCollection(Character target)
 {
     owner = target.ModelId;
     collection = target.STORAGE;
     //sortmode = target.
 }
Пример #5
0
 public DataInventoryCollection(uint characterId, Rag2Collection container)
 {
     owner = characterId;
     collection = container;
 }
Пример #6
0
 public DataInventoryCollection(Character target)
 {
     owner = target.ModelId;
     collection = target.container;
     //sortmode = target.
 }
Пример #7
0
 private LootCollection()
 {
     this.lootlist = new Rag2Collection();
 }
Пример #8
0
 void IDisposable.Dispose()
 {
     GC.SuppressFinalize(this);
     isdisposed = true;
     lootlist = null;
 }
Пример #9
0
 public void Dispose()
 {
     isdisposed = true;
     lootlist = null;
 }