// ========================================================== private PhotonServer() { this.ip = IPAddress.Parse(PhotonIO.ReadSettings("ip")); this.port = int.Parse(PhotonIO.ReadSettings("port")); this.server = new TcpListener(this.ip, port); this.clients = new Dictionary <string, TcpClient>(); this.users = GameDB.Instance.Users; }
public static int Start() { string path = "../../Core/Resources/Start.txt"; PhotonIO.PrintMenu(path); int choice = int.Parse(Console.ReadLine()); Console.Clear(); return(choice); }
public PhotonClient() { this.ip = IPAddress.Parse(PhotonIO.ReadSettings("ip")); this.port = int.Parse(PhotonIO.ReadSettings("port")); this.client = new TcpClient(); }