public virtual System.Object getCompDef(int c)
{
if (specType == SPEC_TYPE_TILE)
{
throw new System.InvalidOperationException("Illegal use of ModuleSpec class");
}
if (compDef == null || compDef[c] == null)
{
return getDefault();
}
else
{
return compDef[c];
}
}