private int SetTargetFromConfig() { var target = LookUpTargetFromConfig(); DynamicProperties.Set(k.target, target); Logger.Info("target definition is set from config. " + this.Eid); return(target); }
public void SetComponents(List <ProductionComponent> components) { var count = 1; var result = new Dictionary <string, object>(components.Count); foreach (var productionComponent in components) { var entry = new Dictionary <string, object> { { k.definition, productionComponent.EntityDefault.Definition }, { k.quantity, productionComponent.Amount } }; result.Add("c" + count++, entry); } DynamicProperties.Set(k.components, result); }
public void SetTargetDefinition(int definition) { DynamicProperties.Set(k.target, definition); Logger.Info("target definition got set in CPRG:" + this.Eid); }
protected virtual void StoreTax(double newTax) { DynamicProperties.Set(k.tax, newTax.Clamp()); this.Save(); Logger.Info("new market tax: " + newTax + " " + this); }