public Property(Air altitude, PropertyDef def, object value) { _altitude = altitude; _propertyDef = def; Value = value; }
public Property GetProperty(PropertyDef propertyDefinition) { return new Property(Air, propertyDefinition, _properties[propertyDefinition.Name]); }
public void SetProperty(PropertyDef propertyDefinition, object value) { if (_properties.ContainsKey(propertyDefinition.Name)) _properties[propertyDefinition.Name] = value; else _properties.Add(propertyDefinition.Name, value); }
public PropertyDef CreatePropertyDef(string name) { PropertyDef propertyDef = new PropertyDef(this, name); _propertyDefsByName.Add(propertyDef.Name, propertyDef); return propertyDef; }