Example #1
0
 public void AddBaseValue(string key, double value)
 {
     if (BaseValueMap.ContainsKey(key))
     {
         return;
     }
     BaseValueMap.Add(key, new BaseProperty()
     {
         Value = value
     });
 }
Example #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);
 }
Example #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);
        }