Exemplo n.º 1
0
        public override IQueryable <SaveAuction> AddQuery(IQueryable <SaveAuction> query, FilterArgs args)
        {
            var key = NBT.GetLookupKey("uid");
            var val = NBT.UidToLong(args.Get(this));

            Console.WriteLine("uuid as int " + val);
            return(query.Where(a => a.NBTLookup.Where(l => l.KeyId == key && l.Value == val).Any()));
        }
Exemplo n.º 2
0
        public override IQueryable <SaveAuction> AddQuery(IQueryable <SaveAuction> query, FilterArgs args)
        {
            var item = ItemDetails.Instance.GetItemIdForName(args.Get(this));
            var key  = NBT.GetLookupKey("heldItem");

            Console.WriteLine(item);
            Console.WriteLine(key);
            return(query.Include(a => a.NBTLookup).Where(a => a.NBTLookup.Where(l => l.KeyId == key && l.Value == item).Any()));
        }
Exemplo n.º 3
0
        public override IQueryable <SaveAuction> AddQuery(IQueryable <SaveAuction> query, FilterArgs args)
        {
            var rarity = Enum.Parse <Tier>(args.Get(this));

            return(query.Where(a => a.Tier == rarity));
        }
Exemplo n.º 4
0
        public override IQueryable <SaveAuction> AddQuery(IQueryable <SaveAuction> query, FilterArgs args)
        {
            var rarity = Enum.Parse <ItemReferences.Reforge>(args.Get(this));

            return(query.Where(a => a.Reforge == rarity));
        }