Пример #1
0
        public void HandleAdminInfo(NetworkMessage msg)
        {
            MsgAdminInfo s = msg as MsgAdminInfo;

            foreach (var i in s.Records)
            {
                Player p = GetPlayerByID(i.PlayerID);
                if (p == null)
                {
                    continue;
                }

                p.IPAddress = i.IPAddress;
                if (PlayerAdminInfoUpdated != null)
                {
                    PlayerAdminInfoUpdated.Invoke(this, p);
                }
            }
        }
Пример #2
0
        private static void HandleAdminInfo(NetworkMessage msg)
        {
            MsgAdminInfo s = msg as MsgAdminInfo;

            WriteLine("MsgAdminInfo Has " + s.Records.Count.ToString() + " records");
        }