Отладка констант

This commit is contained in:
QAMuser
2024-10-09 11:58:03 +03:00
parent b501a60e5b
commit b7359c5fab
2 changed files with 15 additions and 9 deletions

View File

@@ -2,11 +2,11 @@ extends Node
const TableNode = preload("res://table/node.tscn")
var file = FileAccess.open("user://constants.txt", FileAccess.READ)
const UNICAST_PORT: int = 50003
const UNICAST_ADDRESS: String = '10.1.1.3'
const UNICAST_ADDRESS: String = '10.1.1.14'
const BROADCAST_PORT: int = 50000
var DEFAULT_ADDRESS: String = file.get_line()
var DEFAULT_PORT: String = file.get_line()
var BASE_ADDR: int = int(file.get_line())
var DEFAULT_ADDRESS: String = file.get_line() if file else '10.1.1.70'
var DEFAULT_PORT: String = file.get_line() if file else '50070'
var BASE_ADDR: int = int(file.get_line()) if file else 0x100
const ROWS_REGS_DATA: Array = [
[TableNode, TableNode, TableNode, TableNode, TableNode],
[TableNode, TableNode, TableNode, TableNode, TableNode],