public ParamContext(PTypeContext ptc, String name, String subcat, int cost) { pc = ptc; param = new BuildParameter { Game = pc.pc.game, Name = name, Category = subcat, Type = pc.ptype, Cost = cost }; }
public ParamContext Dor(int amount, BuildParameter ofthis, bool not) { var g = bpr.Last(); Dep(amount, ofthis, g.DAmount, not); bpr.Last().OrGroup = g.OrGroup; return(this); }
public ParamContext Dep(int amount, BuildParameter ofthis, int forthis, bool not) { bpr.Add(new BuildParameterRequiement { OrGroup = Guid.NewGuid().ToString(), DAmount = forthis, Depend = param, On = ofthis, Game = pc.pc.game, OAmount = amount, Not = not }); return(this); }
public ParamContext Exclude(int amount, BuildParameter ofthis, int forthis = 1) { return(Dep(amount, ofthis, forthis, true)); }
public ParamContext Require(int amount, BuildParameter ofthis, int forthis = 1) { return(Dep(amount, ofthis, forthis, false)); }
public ParamContext OrExclude(int amount, BuildParameter ofthis) { return(Dor(amount, ofthis, true)); }
public ParamContext OrRequire(int amount, BuildParameter ofthis) { return(Dor(amount, ofthis, false)); }