private void InitComponents() { User = new UserComponent(this); Chat = new ChatComponent(this); Broadcast = new BroadcastComponent(this); Search = new SearchComponent(this); Songs = new SongsComponent(this); Queue = new QueueComponent(this); Remora = new RemoraComponent(this); }
/// <summary> /// Clears all players' broadcasts. /// </summary> public static void ClearBroadcasts() => BroadcastComponent.RpcClearElements();
/// <summary> /// Broadcasts a message to all players. /// </summary> /// <param name="message">What will be broadcasted (supports Unity Rich Text formatting)</param> /// <param name="duration">The duration in seconds</param> /// <param name="monospace">If the message should be in monospace</param> public static void Broadcast(string message, uint duration, bool monospace = false) => BroadcastComponent.RpcAddElement(message, duration, monospace);