예제 #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;
 }