Beispiel #1
0
    //----------------------------------------------------------------------------

    public bool AttributeExists(PKFxManager.AttributeDesc desc)
    {
        foreach (PKFxManager.Attribute attr in this.m_FxAttributesList)
        {
            if (attr.m_Descriptor.Name == desc.Name && attr.m_Descriptor.Type == desc.Type)
            {
                return(true);
            }
        }
        return(false);
    }
Beispiel #2
0
    //----------------------------------------------------------------------------

    public void DeleteAttribute(PKFxManager.AttributeDesc desc)
    {
        foreach (PKFxManager.Attribute attr in this.m_FxAttributesList)
        {
            if (attr.m_Descriptor.Name == desc.Name && attr.m_Descriptor.Type == desc.Type)
            {
                this.m_FxAttributesList.Remove(attr);
                return;
            }
        }
    }
Beispiel #3
0
    //----------------------------------------------------------------------------

    public PKFxManager.Attribute GetAttributeFromDesc(PKFxManager.AttributeDesc desc)
    {
        foreach (PKFxManager.Attribute attr in this.m_FxAttributesList)
        {
            if (attr.m_Descriptor.Name == desc.Name && attr.m_Descriptor.Type == desc.Type)
            {
                attr.m_Descriptor = desc;
                return(attr);
            }
        }
        return(null);
    }