コード例 #1
0
            /// <summary>
            /// Create a request to run a query
            /// </summary>
            public DBQuery(TransactionsCollection queries, string callbackId)
            {
                this.Stop   = false;
                this.Delete = false;

                this.Queries = queries;

                this.CallbackId = callbackId;
            }
コード例 #2
0
 public Inventory(uint ID)
 {
     UID               = ID;
     ItemCardEquip     = new CardEquipCollection((int)UID);
     ItemCharacter     = new CharacterCollection((int)UID);
     ItemMascot        = new MascotCollection((int)UID);
     ItemWarehouse     = new WarehouseCollection((int)UID);
     ItemCaddie        = new CaddieCollection((int)UID);
     ItemCard          = new CardCollection((int)UID);
     ItemTransaction   = new TransactionsCollection();
     ItemRoom          = new FurnitureCollection((int)UID);
     ItemSlot          = new ItemSlotData();
     ItemDecoration    = new ItemDecorationData();
     ItemTrophies      = new TrophyCollection();
     ItemTrophySpecial = new TrophySpecialCollection();
 }
コード例 #3
0
        public PlayerInventory(UInt32 TUID)
        {
            UID               = TUID;
            ItemCardEquip     = new CardEquipCollection((int)UID);
            ItemCharacter     = new CharacterCollection((int)UID);
            ItemMascot        = new MascotCollection((int)UID);
            ItemWarehouse     = new WarehouseCollection((int)UID);
            ItemCaddie        = new CaddieCollection((int)UID);
            ItemCard          = new CardCollection((int)UID);
            ItemTransaction   = new TransactionsCollection();
            ItemRoom          = new FurnitureCollection((int)UID);
            ItemSlot          = new ItemSlotData();
            ItemDecoration    = new ItemDecorationData();
            ItemTrophies      = new TrophyCollection();
            ItemTrophyGP      = new TrophyGPCollection();
            ItemTrophySpecial = new TrophySpecialCollection();
            ItemSlotData Items;
            var          _db = new PangyaEntities();

            foreach (var info in _db.ProcGetToolbar((int)UID))
            {
                Items = new ItemSlotData
                {
                    Slot1  = (uint)info.ITEM_SLOT_1,
                    Slot2  = (uint)info.ITEM_SLOT_2,
                    Slot3  = (uint)info.ITEM_SLOT_3,
                    Slot4  = (uint)info.ITEM_SLOT_4,
                    Slot5  = (uint)info.ITEM_SLOT_5,
                    Slot6  = (uint)info.ITEM_SLOT_6,
                    Slot7  = (uint)info.ITEM_SLOT_7,
                    Slot8  = (uint)info.ITEM_SLOT_8,
                    Slot9  = (uint)info.ITEM_SLOT_9,
                    Slot10 = (uint)info.ITEM_SLOT_10,
                };

                ItemSlot.SetItemSlot(Items);
                SetTitleIndex((uint)info.Skin_1);
                SetCharIndex((uint)info.CHARACTER_ID);
                SetCaddieIndex((uint)info.CADDIE);
                SetBallTypeID((uint)info.BALL_ID);
                SetClubSetIndex((uint)info.CLUB_ID);
                SetMascotIndex((uint)info.MASCOT_ID);
                SetPoster((uint)info.POSTER_1, (uint)info.POSTER_2);
            }

            ItemCharacter.Card = ItemCardEquip;
        }
コード例 #4
0
            public void Query(string dbname, TransactionsCollection queries, string callbackId)
            {
                lock (runnersLock)
                {
                    DBRunner runner;
                    if (!runners.TryGetValue(dbname, out runner))
                    {
                        // query may start before open is scheduled
                        runner = new DBRunner(this, dbname, null);
                        runner.Start();
                        runners[dbname] = runner;
                    }

                    var query = new DBQuery(queries, callbackId);
                    runner.Enqueue(query);
                }
            }