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