Ejemplo n.º 1
0
        /// <summary>
        /// Sends a textual informational message to a player
        /// </summary>
        /// <param name="msg">the message</param>
        /// <param name="includeObservers">if observers should be included</param>
        /// <param name="targetPlayers">explicit list of message targets, or null for everyone</param>
        public void SendGameInfoMessageToPlayer(ServerCharacterInfo toon, string msg)
        {
            PacketGameInfoNotification note = new PacketGameInfoNotification();

            note.Message = msg;
            SendPacketToPlayer(toon, note);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Sends a textual informational message to all players
        /// </summary>
        /// <param name="msg">the message</param>
        /// <param name="includeObservers">if observers should be included</param>
        /// <param name="targetPlayers">explicit list of message targets, or null for everyone</param>
        public void BroadcastGameInfoMessage(string msg, bool includeObservers)
        {
            PacketGameInfoNotification note = new PacketGameInfoNotification();

            note.Message = msg;
            BroadcastToPlayersInGame(note, includeObservers);
        }
Ejemplo n.º 3
0
        private void OnGameInfoNotification(INetworkConnection con, Packet msg)
        {
            PacketGameInfoNotification info = msg as PacketGameInfoNotification;

            if (info != null)
            {
                OnGameInfoNotification(con, info);
            }
        }
Ejemplo n.º 4
0
 protected virtual void OnGameInfoNotification(INetworkConnection con, PacketGameInfoNotification msg)
 {
     Log.LogMsg(">>> Game Info Message: " + msg.Message);
     AddMessage(FormatString(GameStringType.SystemMessage, "-->" + msg.Message));
 }
Ejemplo n.º 5
0
 protected virtual void OnGameInfoNotification(INetworkConnection con, PacketGameInfoNotification msg)
 {
     Log.LogMsg(">>> Game Info Message: " + msg.Message);
     AddMessage(FormatString(GameStringType.SystemMessage, "-->" + msg.Message));
 }