Пример #1
0
 protected override void OnPrefabInit()
 {
     _instance = this;
     fullSongPlaylist.ResetUnplayedSongs();
     miniSongPlaylist.ResetUnplayedSongs();
     nextMusicType = musicStyleOrder[musicTypeIterator];
 }
Пример #2
0
 public Song(string name = " ", DateTime released = new DateTime(), TypeOfMusic genre = 0, string length = " ", string writer = " ", System.Guid id = new Guid())
 {
     Name     = name;
     Released = released;
     Genre    = genre;
     Length   = length;
     Writer   = writer;
     ID       = id;
 }
Пример #3
0
 public MusicGroup(string name = " ", string nationality = " ", TypeOfMusic type = 0, DateTime createdDate = new DateTime(), DateTime endDate = new DateTime(), System.Data.Linq.Binary image = null, System.Guid id = new Guid())
 {
     Name        = name;
     Nationality = nationality;
     Type        = type;
     CreatedDate = createdDate;
     EndDate     = endDate;
     Image       = image;
     ID          = id;
     _musicians  = new List <Musician>();
     _songs      = new List <Song>();
 }
Пример #4
0
 private void CycleToNextMusicType()
 {
     musicTypeIterator = ++musicTypeIterator % musicStyleOrder.Length;
     nextMusicType     = musicStyleOrder[musicTypeIterator];
 }
Пример #5
0
 public string GetMusicName(int m)
 {
     TypeOfMusic = (MusicType)m;
     return(TypeOfMusic.ToDescription());
 }