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)); }
/// <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)); }
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)); } }