예제 #1
0
 internal PlayerQuests(DatabaseQuery pQuery)
 {
     while (pQuery.NextRow())
     {
         PlayerQuest quest = new PlayerQuest(pQuery);
         mQuests.Add(quest.QuestIdentifier, quest);
     }
 }
예제 #2
0
 internal PlayerSkills(DatabaseQuery pQuery)
 {
     while (pQuery.NextRow())
     {
         PlayerSkill skill = new PlayerSkill(pQuery);
         mSkills.Add(skill.SkillIdentifier, skill);
     }
 }
예제 #3
0
 internal PlayerCards(DatabaseQuery pQuery)
 {
     while (pQuery.NextRow())
     {
         PlayerCard card = new PlayerCard(pQuery);
         mCards.Add(card.CardIdentifier, card);
     }
 }
 internal PlayerTeleports(DatabaseQuery pQuery)
 {
     mTeleports = new PlayerTeleport[MAX_TELEPORTS + MAX_VIP_TELEPORTS];
     while (pQuery.NextRow())
     {
         PlayerTeleport teleport = new PlayerTeleport(pQuery);
         mTeleports[teleport.Slot] = teleport;
     }
 }
예제 #5
0
 internal PlayerMacros(DatabaseQuery pQuery)
 {
     mMacros = new PlayerMacro[0];
     while (pQuery.NextRow())
     {
         PlayerMacro macro = new PlayerMacro(pQuery);
         if (mMacros.Length <= macro.Slot) Array.Resize(ref mMacros, macro.Slot + 1);
         mMacros[macro.Slot] = macro;
     }
 }
예제 #6
0
 internal PlayerItems(int pMesos, byte[] pSlots, DatabaseQuery pQuery)
 {
     mMesos = pMesos;
     mEquipped = new PlayerItem[(byte)EEquipmentSlot.Count];
     mCashEquipped = new PlayerItem[(byte)EEquipmentSlot.Count];
     mItems = new PlayerItem[pSlots.Length][];
     for (int index = 0; index < pSlots.Length; ++index) mItems[index] = new PlayerItem[pSlots[index]];
     while (pQuery.NextRow())
     {
         PlayerItem item = new PlayerItem(pQuery);
         if (item.InventoryType == EInventoryType.Equipment && item.InventorySlot < 0)
         {
             if (item.InventorySlot < -100) mCashEquipped[(-item.InventorySlot) - 100] = item;
             else mEquipped[-item.InventorySlot] = item;
         }
         else mItems[(byte)item.InventoryType][item.InventorySlot] = item;
     }
 }
 internal PlayerBuddies(byte pMaxBuddies, DatabaseQuery pQuery)
 {
     mMaxBuddies = pMaxBuddies;
     mBuddies = new List<PlayerBuddy>(mMaxBuddies);
     while (pQuery.NextRow()) mBuddies.Add(new PlayerBuddy(pQuery));
 }