Пример #1
0
        public void NotifyMessageToTeammate(MarvinsArena.Robot.Core.CoreMessageReceivedFromTeammateEventArgs msg)
        {
            if (!IsActive)
            {
                return;
            }

            messageExchangeFromHost.MessageReceivedFromTeammate.Add(msg);
        }
Пример #2
0
 /// <summary>
 /// Internal object for event handling.
 /// </summary>
 /// <param name="sender">The event source</param>
 /// <param name="e">The event arguments</param>
 private void TeamRobot_MessageReceivedFromTeammate(object sender,
                                                    MarvinsArena.Robot.Core.CoreMessageReceivedFromTeammateEventArgs e)
 {
     if (MessageReceivedFromTeammate != null)
     {
         MessageReceivedFromTeammateEventArgs args = new MessageReceivedFromTeammateEventArgs(e.Team, e.SquadNumber, e.Message);
         MessageReceivedFromTeammate(sender, args);
     }
 }