Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Broadcast"/> class.
 /// </summary>
 /// <param name="content"><inheritdoc cref="Content"/></param>
 /// <param name="duration"><inheritdoc cref="Duration"/></param>
 /// <param name="show"><inheritdoc cref="Show"/></param>
 /// <param name="type"><inheritdoc cref="Type"/></param>
 public Broadcast(string content, ushort duration = 10, bool show = true, global::Broadcast.BroadcastFlags type = global::Broadcast.BroadcastFlags.Normal)
 {
     Content  = content;
     Duration = duration;
     Show     = show;
     Type     = type;
 }
Esempio n. 2
0
 /// <summary>
 /// Broadcasts a message to all players.
 /// </summary>
 /// <param name="duration">The duration in seconds.</param>
 /// <param name="message">The message that will be broadcast (supports Unity Rich Text formatting).</param>
 /// <param name="type">The broadcast type.</param>
 public static void Broadcast(ushort duration, string message, global::Broadcast.BroadcastFlags type = global::Broadcast.BroadcastFlags.Normal)
 {
     Server.Broadcast.RpcAddElement(message, duration, type);
 }