using KCM.Enums; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TMPro; using UnityEngine; using UnityEngine.UI; namespace KCM { public class ServerEntryScript : MonoBehaviour { public int PlayerCount { get; set; } public DateTime Heartbeat { get; set; } public string Name { get; set; } public string Host { get; set; } public int MaxPlayers { get; set; } public bool Locked { get; set; } public string Difficulty { get; set; } public string PlayerId { get; set; } public string IPAddress { get; set; } public int Port { get; set; } public string Id { get; set; } public DateTime CreatedAt { get; set; } public DateTime UpdatedAt { get; set; } public List Permissions { get; set; } public string DatabaseId { get; set; } public string CollectionId { get; set; } public void Start() { transform.Find("Panel/ServerName").GetComponent().text = Name; transform.Find("Panel/ServerHost").GetComponent().text = Host; transform.Find("ServerDifficulty").GetComponent().text = Difficulty; transform.Find("ServerLocked").gameObject.SetActive(Locked); transform.Find("ServerPlayers").GetComponent().text = $"{PlayerCount}/{MaxPlayers}"; transform.Find("Join").GetComponent