public AsProperty GetProperty( eComponentProperty id) { if( properties_.ContainsKey( id)) return properties_[id]; return null; }
public void SetValue( eComponentProperty id, System.Object v) { AsProperty prop = GetProperty( id); if( prop == null) Debug.LogError( "[AsPropertySet]SetDefaultValue: Invalid id - " + id + ", " + v.GetType()); else prop.SetValue( v); }
public void RemoveProperty( eComponentProperty id) { if( properties_.ContainsKey( id)) { properties_[id] = null; properties_.Remove( id); } }
public System.Object GetValue( eComponentProperty id) { AsProperty prop = GetProperty( id); if( prop == null) { Debug.LogError( "[AsPropertySet]SetDefaultValue: Invalid id -" + id); return null; } return prop.GetValue(); }
public bool ContainProperty( eComponentProperty id) { return properties_.ContainsKey( id); }
public AsProperty( string id, string type) { id_ = GetPropertyEnum( id); type_ = GetTypeDefinition( type); }
public static string GetPropertyString( eComponentProperty _type) { return _type.ToString(); }