internal Process(int costDays) { this.costDays = costDays; this.startDays = Date.inst.total_days.Value; this.name = GetType().Name; this.percent = new SubjectValue <double>(0.0); }
internal InCome(string name, double percent, ObservableValue <double> maxValue) : this() { this.name = name; this.percent = new SubjectValue <double>(percent); this.maxValue = maxValue; InitObservableData(new StreamingContext()); }
private Economy(Define.EconomyDef def) { curr = new SubjectValue <double>(def.curr); incomes = new InComes(def); outputs = new Outputs(def); InitObservableData(new StreamingContext()); }
internal Output(string name, double percent, ObservableValue <double> maxValue, Action expend = null) : this() { this.name = name; this.percent = new SubjectValue <double>(percent); this.maxValue = maxValue; this.expend = expend; InitObservableData(new StreamingContext()); }
internal Pop(string depart_name, string name, int num) { this.name = name; this.depart_name = depart_name; this.num = new SubjectValue <double>(num); InitObservableData(new StreamingContext()); }
internal Chaoting(Define.ChaotingDef def) { powerPartyName = def.powerParty; if (powerParty == null) { throw new Exception($"can not find chaoting power party ${powerPartyName}"); } reportPopNum = new SubjectValue <int>((int)(Depart.all.Sum(x => x.popNum.Value) * def.reportPopPercent / 100)); reportTaxPercent = new SubjectValue <double>(def.taxPercent); InitObservableData(new StreamingContext()); }
public Taishou(string name, int age, string partyName) : this() { this.name = name; this.age = new SubjectValue <int>(age); this.partyName = partyName; }
internal Depart(string name) { this.name = name; this.cropGrown = new SubjectValue <double>(0); }