Fix variable names
This commit is contained in:
parent
f08e154e6f
commit
4e335dc97d
2 changed files with 11 additions and 10 deletions
|
@ -3,14 +3,17 @@ class nel_server_info:
|
|||
var _shardIp;
|
||||
var _ringStartAdress;
|
||||
var _ringAddress;
|
||||
var _unknowAdress;
|
||||
var _patchAddress;
|
||||
var _patchVersion
|
||||
var _backupPatchUrls;
|
||||
var _patchUrls;
|
||||
|
||||
func _init(connexionResultString):
|
||||
var params = connexionResultString.split('#');
|
||||
_cookie = params[1];
|
||||
_shardIp = params[2];
|
||||
_ringStartAdress = params[3];
|
||||
_ringAddress = params[4];
|
||||
_unknowAdress = params[5];
|
||||
_patchAddress = params[6];
|
||||
var temp = params[4].split('\n')
|
||||
self._cookie = params[1];
|
||||
self._shardIp = params[2];
|
||||
self._ringStartAdress = params[3];
|
||||
self._ringAddress = temp[0];
|
||||
self._patchVersion = temp[1];
|
||||
self._backupPatchUrls = params[5];
|
||||
self._patchUrls = params[6];
|
|
@ -36,8 +36,6 @@ func _on_HTTPRequest_request_completed(result, response_code, headers, body):
|
|||
if(s[0] != "0"):
|
||||
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());
|
||||
print(server_info._cookie)
|
||||
print(server_info._shardIp)
|
||||
emit_signal( "login_button_pressed" )
|
||||
|
||||
# No error so login was successful.
|
||||
|
|
Loading…
Reference in a new issue