示例#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();
         }
     }
 }
示例#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();
        }
示例#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.");
             }
         }
     }
 }
示例#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();
         }
     }
 }
示例#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.");
         }
     }
 }