Example #1
0
        public float GetGameValueComponent(string name, GameValue.GameValueComponent component)
        {
            GameValue gv = GetGameValueObject(name);

            if (gv == null)
            {
                return(0);
            }
            return(gv.GetValueComponent(component));
        }
Example #2
0
 public GameValueModifier(GameValue.GameValueComponent modifyValueComponent, ModifyBehavior modifyBehavior, float modifyValue)
 {
     this.modifyValueComponent = modifyValueComponent;
     this.modifyBehavior       = modifyBehavior;
     this.modifyValue          = modifyValue;
 }