/// <summary>
        /// Send to all client to stop playing a sound
        /// </summary>
        /// <param name="name">The SoundSpawn Token that identifies the sound instance to stop.</param>
        /// <returns>The sent message</returns>
        public static StopSoundMessage SendToAll(string soundSpawnToken)
        {
            StopSoundMessage msg = new StopSoundMessage
            {
                SoundSpawnToken = soundSpawnToken
            };

            msg.SendToAll();

            return(msg);
        }
Esempio n. 2
0
        /// <summary>
        /// Send to all client to stop playing a sound
        /// </summary>
        /// <param name="name">The name of the sound.</param>
        /// <returns>The sent message</returns>
        public static StopSoundMessage SendToAll(string name)
        {
            StopSoundMessage msg = new StopSoundMessage
            {
                Name = name
            };

            msg.SendToAll();

            return(msg);
        }
 /// <summary>
 /// Tell all clients to stop playing a sound
 /// </summary>
 /// <param name="soundSpawnToken">The SoundSpawn Token that identifies the sound to be stopped</returns>
 public static void StopNetworked(string soundSpawnToken)
 {
     StopSoundMessage.SendToAll(soundSpawnToken);
 }
Esempio n. 4
0
 /// <summary>
 /// Tell all clients to stop playing a sound
 /// </summary>
 /// <param name="name">The sound to be stopped</param>
 public static void StopNetworked(string name)
 {
     StopSoundMessage.SendToAll(name);
 }