public ItemQuery QueryItems(ItemQueryCfg cfg) { var query = new ItemQuery(this, cfg, items); RegisterItemListener(query); return(query); }
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; }