public GameFrm(Socket OwnerSocket, Roomslist parentFrm) { InitializeComponent(); this.Owner = OwnerSocket; parentForm = parentFrm; recBuffer = new byte[2048]; sendBuffer = new byte[2048]; }
public GameFrm(Player player, Room room, Roomslist parentFrm) { InitializeComponent(); InGamePlayers = new List <Player>(); Watchers = new List <Player>(); Owner = player; InGamePlayers.Add(Owner); Room = room; parentForm = parentFrm; recBuffer = new byte[2048]; sendBuffer = new byte[2048]; }