Exemple #1
0
        private void loadGSNETProperties(JProperties props)
        {
            gameHost = props.getValue("gameserver.network.client.host");
            if (gameHost == null || gameHost.StartsWith("*"))
            {
                gameHost = "127.0.0.1";
            }
            string sgp = props.getValue("gameserver.network.client.port");

            if (sgp == null)
            {
                sgp = "7777";             //  default port
            }
            if (!Int32.TryParse(sgp, out gamePort))
            {
                gamePort = 7777;
            }
        }