Beispiel #1
0
		public DawnsMusicInfo( int name, DawnsMusicRarity rarity )
		{
			m_Name = name;
			m_Rarity = rarity;
		}
		public static MusicName RandomTrack( DawnsMusicRarity rarity )
		{
			MusicName[] list = null;

			switch ( rarity )
			{
				default:
				case DawnsMusicRarity.Common: list = m_CommonTracks; break;
				case DawnsMusicRarity.Uncommon: list = m_UncommonTracks; break;
				case DawnsMusicRarity.Rare: list = m_RareTracks; break;
			}

			return list[ Utility.Random( list.Length ) ];
		}