private void ProcessNewGame(CreateGamePacket cgp, NetPeer p) { LCRLobby g = new LCRLobby(cgp.Id, cgp.Playernum); GameList.Add(g); cgp.Success = true; Console.WriteLine($"{ServerSignature} game created! ID:{cgp.Id} Players:{cgp.Playernum}"); _netPacketProcessor.SendNetSerializable(p, cgp, DeliveryMethod.ReliableOrdered); }
private void ProcessNewGame(CreateGamePacket arg1, NetPeer arg2) { if (arg1.Success) { Console.WriteLine($"{ClientSignature} game created! ID:{arg1.Id} Players:{arg1.Playernum}"); theGame = new LCRLobby(arg1.Id, arg1.Playernum); } else { Console.WriteLine($"{ClientSignature} game failed! ID:{arg1.Id} Players:{arg1.Playernum}"); } }