Beispiel #1
0
        public ItemQuery QueryItems(ItemQueryCfg cfg)
        {
            var query = new ItemQuery(this, cfg, items);

            RegisterItemListener(query);
            return(query);
        }
Beispiel #2
0
 public HaulProvider(Game game, PathCfg dst, ItemInfo info, string dstDesc)
 {
     this.game     = game;
     this.dst      = dst;
     this.info     = info;
     this.taskDesc = $"Hauling {info.def.name} to {dstDesc}.";
     query         = game.QueryItems(new ItemQueryCfg(info.def, info.amt, dst));
     amtStored     = amtClaimed = 0;
 }