Коммит deaa169c создал по автору magcourier's avatar magcourier
Просмотр файлов

Запуск на рабочем бэкенде

владелец b9edaf3f
......@@ -13,10 +13,10 @@ var q
# warning-ignore:unused_argument
# warning-ignore:unused_argument
func login_request_complete(result, response_code, headers, body):
print('=== result ===', result)
print('=== response_code ===', response_code)
print('=== headers ===', headers)
print('=== body ===', body)
# print('=== result ===', result)
# print('=== response_code ===', response_code)
# print('=== headers ===', headers)
# print('=== body ===', body)
var resp = body.get_string_from_utf8()
print('=== resp ===', resp)
var parsed_resp: Dictionary = parse_json(resp)
......
extends Control
extends "res://kerno/wablono/estonteco/fenestroj.gd"
# extends Control
var display = 30
#время в секундах до появления кнопки закрытия меню
......@@ -26,3 +27,4 @@ func _drag_rect(event):
if event is InputEventMouseMotion and Input.is_mouse_button_pressed(BUTTON_LEFT):
$CanvasLayer/Margin.rect_position += event.relative
#перемещение меню
......@@ -126,6 +126,9 @@ func _on_data_start():
# ответ на запрос списка управляемый объектов
if on_data['id'] == String(id_direktebla_query):
print('=== on_data == ', on_data)
if Global.logs:
Global.saveFileLogs("=== _on_data_start = ")
Global.saveFileLogs(on_data)
for objekt in on_data['payload']['data']['objekto']['edges']:
Global.direktebla_objekto[objekt['node']['realeco']['objId']-2]=objekt['node'].duplicate(true)
Global.direktebla_objekto[objekt['node']['realeco']['objId']-2]['kosmo'] = Global.server
......
......@@ -82,9 +82,9 @@ func get_direktebla_json(statusoId, tipoId, id=0):
'variables': {"statusoId":statusoId,
"tipoId":tipoId, "statusoIdIn":statusoIdIn,
"UzantoId":Global.id, "ligiloTipo":"1,2"} } })
# if Global.logs:
# Global.saveFileLogs("=== get_direktebla_query = ")
# Global.saveFileLogs(query)
if Global.logs:
Global.saveFileLogs("=== get_direktebla_query = ")
Global.saveFileLogs(query)
# print("=== get_direktebla_query = ",query)
return query
......@@ -104,8 +104,8 @@ func get_objekto_uuid(uuid_objekto, id):
" } } } }",
'variables': {"uuid_objekto":uuid_objekto,
} } })
# if Global.logs:
# print("=== get_objekto_uuid = ",query)
if Global.logs:
print("=== get_objekto_uuid = ",query)
Net.add_net_sendij(id, 'get_objekto_uuid')
return query
......@@ -126,6 +126,8 @@ func get_direktebla_kosmo_json(id=0):
") { edges { node { uuid " +
" realeco{objId}}}}}",
'variables': {"UzantoId":Global.id} } })
if Global.logs:
print("=== get_direktebla_kosmo_json = ",query)
# print("=== get_direktebla_kosmo_query = ",query)
return query
......@@ -187,9 +189,9 @@ func get_objekto_kosmo(statusoId, tipoId, kuboId=Global.kubo, id=0, after=""):
"tipoId":tipoId, "statusoIdIn":statusoIdIn,
"realecoId":Global.realeco, "ligiloTipo":"1,2"} } })
# задача - получать данные типа 3 с астероидов
# if Global.logs:
# Global.saveFileLogs("=== get_objekto_kosmo = ")
# Global.saveFileLogs(query)
if Global.logs:
Global.saveFileLogs("=== get_objekto_kosmo = ")
Global.saveFileLogs(query)
# print('===get_objekto_kosmo=')#,query)
Net.add_net_sendij(id, 'get_objekto_kosmo')
return query
......@@ -242,7 +244,7 @@ func get_objekto(uuid, id=0, after=""):
# !!!!! нужно на уровне прав заблокировать то, что находится внутри чужих кораблей (только через задачи при сканировании)
if Global.logs:
# print('===get_objekto=',query)
Global.saveFileLogs('===get_objekto=')
Global.saveFileLogs('=== get_objekto =')
Global.saveFileLogs(query)
Net.add_net_sendij(id, 'get_objekto')
return query
......@@ -269,8 +271,10 @@ func subscription_ligilo(ligilo, id):
' ligilo { uuid forigo } '+
' } } ',
'variables': {"ligilo": ligilo } }})
# if Global.logs:
# print('=== subscription_ligilo =query= ',query)
if Global.logs:
Global.saveFileLogs('=== subscription_ligilo =')
Global.saveFileLogs(query)
# print('=== subscription_ligilo =query= ',query)
return query
......@@ -315,8 +319,10 @@ func subscription_objekto_ligilo(uuid_objekto, id):
'}}',
'variables': {"uuid_objekto":uuid_objekto,
"ligiloTipo":"1,2" } }})
# if Global.logs:
# print('=== subscription_objekto_ligilo =query= ',query)
if Global.logs:
Global.saveFileLogs('=== subscription_objekto_ligilo =')
Global.saveFileLogs(query)
# print('=== subscription_objekto_ligilo =query= ',query)
return query
......@@ -351,8 +357,9 @@ func get_stokejo(uuid, id=0, after=""):
query_ligilo_fino +
" } } }} }}} ",
'variables': {"uuid":uuid, "ligiloTipo":"1,2"} } })
# if Global.logs:
# Global.saveFileLogs(query)
if Global.logs:
Global.saveFileLogs('=== get_stokejo =')
Global.saveFileLogs(query)
# print('===get_stokejo=',query)
Net.add_net_sendij(id, 'get_stokejo')
return query
......@@ -407,9 +414,9 @@ func subscribtion_uzanto_realeco(id):
' rotaciaX rotaciaY rotaciaZ } '+
'} }',
'variables': {"realeco": Global.realeco} }})
# if Global.logs:
# Global.saveFileLogs('=== subscribtion_uzanto_realeco =query= ')
# Global.saveFileLogs(query)
if Global.logs:
Global.saveFileLogs('=== subscribtion_uzanto_realeco =query= ')
Global.saveFileLogs(query)
# print('=== subscribtion_uzanto_realeco =query= ',query)
Net.add_net_sendij(id, 'subscribtion_uzanto_realeco')
return query
......@@ -425,7 +432,9 @@ func projekto_statuso_fermi():
" redaktuFermiTaskojProjekto "+
" {status message projektoj{ uuid }}}",
} })
# if Global.logs:
if Global.logs:
Global.saveFileLogs('=== projekto_statuso_fermi == ')
Global.saveFileLogs(query)
# print("=== projekto_statuso_fermi = ",query)
Net.add_net_sendij(id, 'projekto_statuso_fermi')
return query
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать