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); } } }
private static void HandleAdminInfo(NetworkMessage msg) { MsgAdminInfo s = msg as MsgAdminInfo; WriteLine("MsgAdminInfo Has " + s.Records.Count.ToString() + " records"); }