public void SendTeamInformation(Connection c, Common.GameUtils.Team team) { Packet09Team pack = new Packet09Team() { Descr = "You are in the " + team.Name + " team", Team = team }; c.SendObject("ShowTeam", pack); }
protected void WhenShowTeam(PacketHeader packetHeader, Connection connection, Packet09Team pack) { Console.WriteLine(pack.Descr); if (pack.Team.Name.Equals("Blue")) { Console.ForegroundColor = ConsoleColor.Blue; } else { Console.ForegroundColor = ConsoleColor.Red; } }