예제 #1
0
        //Team "team" triggered "action" [61]
        /// <summary>
        /// Raises the <see cref="TeamTriggered"/> event.
        /// </summary>
        /// <param name="timestamp">Time at which <see cref="TeamTriggered"/> event was fired.</param>
        /// <param name="info">Information about <see cref="TeamTriggered"/> event.</param>
        protected virtual void OnTeamAction(DateTime timestamp, string[] info)
        {
            TeamActionEventArgs eventArgs = new TeamActionEventArgs()
            {
                Timestamp = timestamp,
                Team      = info[1],
                Action    = info[3]
            };

            TeamTriggered.Fire(ServerEndPoint, eventArgs);
        }
예제 #2
0
 /// <summary>
 /// Ons the team action event handled.
 /// </summary>
 /// <param name="e">TeamActionEventArgs</param>
 private void OnTeamActionEventHandled(TeamActionEventArgs e)
 {
     this.announcer.AnnounceToConsole(e.Msg);
 }