Exemple #1
0
	public AsProperty GetProperty( eComponentProperty id)
	{
		if( properties_.ContainsKey( id))
			return properties_[id];

		return null;
	}
Exemple #2
0
	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);
	}
Exemple #3
0
	public void RemoveProperty( eComponentProperty id)
	{
		if( properties_.ContainsKey( id))
		{
			properties_[id] = null;
			properties_.Remove( id);
		}
	}
Exemple #4
0
	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();
	}
Exemple #5
0
	public bool ContainProperty( eComponentProperty id)
	{
		return properties_.ContainsKey( id);
	}
Exemple #6
0
	public AsProperty( string id, string type)
	{
		id_ = GetPropertyEnum( id);
		type_ = GetTypeDefinition( type);
	}
Exemple #7
0
	public static string GetPropertyString( eComponentProperty _type)
	{
		return _type.ToString();
	}