예제 #1
0
        // ==========================================================


        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;
        }
예제 #2
0
        public static int Start()
        {
            string path = "../../Core/Resources/Start.txt";

            PhotonIO.PrintMenu(path);

            int choice = int.Parse(Console.ReadLine());

            Console.Clear();

            return(choice);
        }
예제 #3
0
 public PhotonClient()
 {
     this.ip     = IPAddress.Parse(PhotonIO.ReadSettings("ip"));
     this.port   = int.Parse(PhotonIO.ReadSettings("port"));
     this.client = new TcpClient();
 }