using System.Collections;
using System.Collections.Generic;
using TMPro;
using Unity.Netcode;
using UnityEngine;
using UnityEngine.Events;

public class HostGameModule : MonoBehaviour
{
    public MatchmakingService matchmakingService;
    public UnityEvent<MatchmakingService.LobbyData> OnStartHost;

    public async void StartHost()
    {
        MatchmakingService.LobbyData data = new MatchmakingService.LobbyData(); // Initialize the 'data' variable
        data.Name = "Lobby Name";
        data.MaxPlayers = 10;
        data.Difficulty = 0;
        data.Type = 0;
        data.MatchId = "";

        OnStartHost?.Invoke(data);
    }
}
