//---------------------------------------------------------------------------- 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); }
//---------------------------------------------------------------------------- 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; } } }
//---------------------------------------------------------------------------- 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); }