/// <summary> /// Check if exists a gen of type integer with input key /// </summary> /// <param name="ID"></param> /// <returns></returns> public bool ExistsGen(IGenID ID) { return(m_iGenes.ContainsKey(ID)); }
/// <summary> /// Get an iGen by key /// </summary> /// <param name="genType"></param> /// <returns></returns> public IGen GetGen(IGenID genType) { return(m_iGenes[genType]); }
/// <summary> /// Create a gen of type integer with the input paramaters /// </summary> /// <param name="genID"></param> /// <param name="genValue"></param> /// <param name="genMinValue"></param> /// <param name="genMaxValue"></param> public void AddGen(IGenID genID, int genValue, int genMinValue, int genMaxValue) { AddGen(new IGen(genID, genValue, genMinValue, genMaxValue)); }