Fix variable names

This commit is contained in:
Stanislas Dolcini 2018-10-09 13:26:22 +02:00
parent f08e154e6f
commit 4e335dc97d
2 changed files with 11 additions and 10 deletions

View file

@ -3,14 +3,17 @@ class nel_server_info:
var _shardIp; var _shardIp;
var _ringStartAdress; var _ringStartAdress;
var _ringAddress; var _ringAddress;
var _unknowAdress; var _patchVersion
var _patchAddress; var _backupPatchUrls;
var _patchUrls;
func _init(connexionResultString): func _init(connexionResultString):
var params = connexionResultString.split('#'); var params = connexionResultString.split('#');
_cookie = params[1]; var temp = params[4].split('\n')
_shardIp = params[2]; self._cookie = params[1];
_ringStartAdress = params[3]; self._shardIp = params[2];
_ringAddress = params[4]; self._ringStartAdress = params[3];
_unknowAdress = params[5]; self._ringAddress = temp[0];
_patchAddress = params[6]; self._patchVersion = temp[1];
self._backupPatchUrls = params[5];
self._patchUrls = params[6];

View file

@ -36,8 +36,6 @@ func _on_HTTPRequest_request_completed(result, response_code, headers, body):
if(s[0] != "0"): if(s[0] != "0"):
var server_info_script = load("res://assets/Scripts/Models/nel_server_info.gd"); var server_info_script = load("res://assets/Scripts/Models/nel_server_info.gd");
var server_info = server_info_script.nel_server_info.new(body.get_string_from_utf8()); var server_info = server_info_script.nel_server_info.new(body.get_string_from_utf8());
print(server_info._cookie)
print(server_info._shardIp)
emit_signal( "login_button_pressed" ) emit_signal( "login_button_pressed" )
# No error so login was successful. # No error so login was successful.