예제 #1
0
 public Property(Air altitude, PropertyDef def, object value)
 {
     _altitude = altitude;
     _propertyDef = def;
     Value = value;
 }
예제 #2
0
파일: Node.cs 프로젝트: tmitchel2/Altitude
 public Property GetProperty(PropertyDef propertyDefinition)
 {
     return new Property(Air, propertyDefinition, _properties[propertyDefinition.Name]);
 }
예제 #3
0
파일: Node.cs 프로젝트: tmitchel2/Altitude
 public void SetProperty(PropertyDef propertyDefinition, object value)
 {
     if (_properties.ContainsKey(propertyDefinition.Name))
         _properties[propertyDefinition.Name] = value;
     else
         _properties.Add(propertyDefinition.Name, value);
 }
예제 #4
0
파일: Air.cs 프로젝트: Aleksask/Altitude
 public PropertyDef CreatePropertyDef(string name)
 {
     PropertyDef propertyDef = new PropertyDef(this, name);
     _propertyDefsByName.Add(propertyDef.Name, propertyDef);
     return propertyDef;
 }