Category5.XmlSettingsFile.getMegaTileType C# (CSharp) Method

getMegaTileType() public static method

public static getMegaTileType ( int typeNum ) : MegaTileType
typeNum int
return MegaTileType
        public static MegaTileType getMegaTileType(int typeNum)
        {
            // find the type
            foreach (MegaTileType mtt in megaTileTypes)
            {
                if (mtt.Number == typeNum)
                {
                    return mtt;
                }
            }

            throw new ApplicationException("XMLSettingsFile.getMegaTileType: Attempted to retrieve undefined Mega Tile type number '" + typeNum + "' ");
        }