Esempio n. 1
0
 public void AddTrack(MusicBoxTrack track)
 {
     for (int x = 0; x < MusicBoxComponent.SONGS; x++)
     {
         if (track.Song == MusicBoxComponent.Songs[x])
         {
             m_HasTrack[x] = true;
             track.Delete();
         }
     }
 }
Esempio n. 2
0
        public void AddTrack(MusicBoxTrack track)
        {
            if (track == null)
            {
                return;
            }

            for (int x = 0; x < MusicBox.SONGS; x++)
            {
                if (track.Song == MusicBox.Songs[x])
                {
                    m_HasTrack[x] = true;
                }
            }

            track.Delete();
        }
Esempio n. 3
0
 public void Target(MusicBoxTrack target)
 {
     for (int x = 0; x < MusicBox.SONGS; x++)
     {
         if (target.Song == MusicBox.Songs[x])
         {
             if (!m_Box.HasTrack[x])
             {
                 m_Box.HasTrack[x] = true;
                 target.Delete();
                 m_From.SendMessage("Song successfully added.");
             }
             else
             {
                 m_From.SendMessage("That song is already added.");
             }
         }
     }
 }
Esempio n. 4
0
 public void AddTrack(MusicBoxTrack track)
 {
     for (int x = 0; x < MusicBoxComponent.SONGS; x++)
     {
         if (track.Song == MusicBoxComponent.Songs[x])
         {
             m_HasTrack[x] = true;
             track.Delete();
         }
     }
 }
Esempio n. 5
0
 public void Target(MusicBoxTrack target)
 {
     for (int x = 0; x < MusicBox.SONGS; x++)
     {
         if (target.Song == MusicBox.Songs[x])
         {
             if (!m_Box.HasTrack[x])
             {
                 m_Box.HasTrack[x] = true;
                 target.Delete();
                 m_From.SendMessage("Song successfully added.");
             }
             else
                 m_From.SendMessage("That song is already added.");
         }
     }
 }