示例#1
0
 internal void OnNewUserEnter(RoomUser user)
 {
     if (user.IsBot || user.GetClient() == null || this.mSong == null)
     {
         return;
     }
     user.GetClient().SendMessage(JukeboxComposer.ComposePlayingComposer(this.mSong.SongData.Id, this.mSongQueuePosition, this.SongSyncTimestamp));
 }
示例#2
0
 /// <summary>
 /// Broadcasts the current song data.
 /// </summary>
 /// <param name="instance">The instance.</param>
 internal void BroadcastCurrentSongData(Room instance)
 {
     if (CurrentSong != null)
     {
         instance.SendMessage(JukeboxComposer.ComposePlayingComposer(CurrentSong.SongData.Id, SongQueuePosition, 0));
         return;
     }
     instance.SendMessage(JukeboxComposer.ComposePlayingComposer(0u, 0, 0));
 }
示例#3
0
 internal void BroadcastCurrentSongData(Room Instance)
 {
     if (mSong != null)
     {
         Instance.SendMessage(JukeboxComposer.ComposePlayingComposer(mSong.SongData.Id, mSongQueuePosition, 0));
     }
     else
     {
         Instance.SendMessage(JukeboxComposer.ComposePlayingComposer(0, 0, 0));
     }
 }