Exemplo n.º 1
0
 public void AddTrack(MusicBoxTrack track)
 {
     for (int x = 0; x < MusicBox.SONGS; x++)
     {
         if (track.Song == MusicBox.Songs[x])
         {
             m_HasTrack[x] = true;
         }
     }
 }
Exemplo n.º 2
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();
         }
     }
 }
Exemplo n.º 3
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();
        }
Exemplo n.º 4
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.AddTrack(target);
                 m_From.SendMessage("Song successfully added.");
             }
             else
             {
                 m_From.SendMessage("That song is already added.");
             }
         }
     }
 }
Exemplo n.º 5
0
 public void Target(MusicBoxTrack target)
 {
     for (int x = 0; x < MusicBoxComponent.SONGS; x++)
     {
         if (target.Song == MusicBoxComponent.Songs[x])
         {
             if (!m_Box.HasTrack[x])
             {
                 m_Box.AddTrack(target);
                 m_From.SendMessage("Song successfully added.");
                 m_From.Target = new InternalTarget(this);
             }
             else
             {
                 m_From.SendMessage("That song is already added.");
                 m_From.SendGump(new MusicBoxGump(m_From, m_Box));
             }
         }
     }
 }
Exemplo n.º 6
0
 public void Target(MusicBoxTrack target)
 {
     for (int x = 0; x < MusicBoxComponent.SONGS; x++)
     {
         if (target.Song == MusicBoxComponent.Songs[x])
         {
             if (!m_Box.HasTrack[x])
             {
                 m_Box.AddTrack(target);
                 m_From.SendMessage("Song successfully added.");
                 m_From.Target = new InternalTarget(this);
             }
             else
             {
                 m_From.SendMessage("That song is already added.");
                 m_From.SendGump(new MusicBoxGump(m_From, m_Box));
             }
         }
     }
 }
Exemplo n.º 7
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();
         }
     }
 }
Exemplo n.º 8
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.AddTrack(target);
                 m_From.SendMessage("Song successfully added.");
             }
             else
                 m_From.SendMessage("That song is already added.");
         }
     }
 }
Exemplo n.º 9
0
 public void AddTrack(MusicBoxTrack track)
 {
     for (int x = 0; x < MusicBox.SONGS; x++)
     {
         if (track.Song == MusicBox.Songs[x])
         {
             m_HasTrack[x] = true;
         }
     }
 }