/* * Player events */ public void OnPlayerConnect(int index, string name, int pid, string ipAddress, string hash, int teamId) { var player = new Player { Name = name, Id = pid, Index = index, IpAddress = IPAddress.Parse(ipAddress), Hash = hash, Team = new Team { Id = teamId, Name = "Idk", Players = new List <Player>() } // TODO: Get real team from server }; _server.AddPlayer(player); }