Ejemplo n.º 1
0
 public void AddBaseValue(string key, double value)
 {
     if (BaseValueMap.ContainsKey(key))
     {
         return;
     }
     BaseValueMap.Add(key, new BaseProperty()
     {
         Value = value
     });
 }
Ejemplo n.º 2
0
 public override BaseProperty GetProperty(string key)
 {
     if (Attributes.ContainsKey(key))
     {
         return(Attributes[key]);
     }
     if (ResourceMap.ContainsKey(key))
     {
         return(ResourceMap[key]);
     }
     if (Stats.ContainsKey(key))
     {
         return(Stats[key]);
     }
     if (BaseValueMap.ContainsKey(key))
     {
         return(BaseValueMap[key]);
     }
     return(null);
 }
Ejemplo n.º 3
0
        public override bool HasProperty(string propertyKey)
        {
            if (Attributes.ContainsKey(propertyKey))
            {
                return(true);
            }
            if (ResourceMap.ContainsKey(propertyKey))
            {
                return(true);
            }
            if (Stats.ContainsKey(propertyKey))
            {
                return(true);
            }
            if (BaseValueMap.ContainsKey(propertyKey))
            {
                return(true);
            }

            return(false);
        }