Пример #1
0
        private int SetTargetFromConfig()
        {
            var target = LookUpTargetFromConfig();

            DynamicProperties.Set(k.target, target);

            Logger.Info("target definition is set from config. " + this.Eid);
            return(target);
        }
Пример #2
0
        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);
        }
Пример #3
0
 public void SetTargetDefinition(int definition)
 {
     DynamicProperties.Set(k.target, definition);
     Logger.Info("target definition got set in CPRG:" + this.Eid);
 }
Пример #4
0
 protected virtual void StoreTax(double newTax)
 {
     DynamicProperties.Set(k.tax, newTax.Clamp());
     this.Save();
     Logger.Info("new market tax: " + newTax + " " + this);
 }