コード例 #1
0
ファイル: Auction.cs プロジェクト: noHero123/auction.mod
        public static Comparison<Auction> getComparison(AuctionHouse.SortMode mode) {
            switch(mode) {
            case AuctionHouse.SortMode.CARD:
                return CompareCardName;

            case AuctionHouse.SortMode.PRICE:
                return ComparePrice;

            case AuctionHouse.SortMode.SELLER:
                return CompareSellerName;

            case AuctionHouse.SortMode.TIME:
                return CompareTime;

            case AuctionHouse.SortMode.CARD_REVERSE:
                return CompareCardNameREV;

            case AuctionHouse.SortMode.PRICE_REVERSE:
                return ComparePriceREV;

            case AuctionHouse.SortMode.SELLER_REVERSE:
                return CompareSellerNameREV;

            case AuctionHouse.SortMode.TIME_REVERSE:
                return CompareTimeREV;

            default:
                return CompareCardName;
            }
        }
コード例 #2
0
 private AuctionHouseUI()
 {
     this.helpf = Helpfunktions.Instance;
     this.recto = Rectomat.Instance;
     this.prcs = Prices.Instance;
     this.crdvwr = Cardviewer.Instance;
     this.srchsvr = Searchsettings.Instance;
     this.sttngs = Settings.Instance;
     this.ah = AuctionHouse.Instance;
     this.ps = PlayerStore.Instance;
     this.gglthngs = GetGoogleThings.Instance;
 }
コード例 #3
0
ファイル: PlayerStore.cs プロジェクト: noHero123/auction.mod
 public void setSellSortMode(AuctionHouse.SortMode sortMode)
 {
     this.sellSortMode = sortMode;
 }