public void JOINGame(Guid room_guid, string player_name) { var connectionData = new ConectionData() { RoomPasport = room_guid, PlayerName = player_name }; Owner.Sender.SendMessage(new Package() { Sender_Passport = client.Passport, Data = connectionData, MesseggeType = MesseggeType.RoomID }, client["Host"]); }
public void CreateGame(GameSetings gameSetings, string player_name) { var connectionData = new ConectionData() { GameSetings = gameSetings, PlayerName = player_name }; Owner.Sender.SendMessage(new Package() { Sender_Passport = client.Passport, Data = connectionData, MesseggeType = MesseggeType.CreateRoom }, client["Host"]); }