Renamed globals to autoloads for clarity
This commit is contained in:
11
game_core.gd
11
game_core.gd
@@ -1,4 +1,5 @@
|
||||
class_name GameCore extends Node
|
||||
static var instance: GameCore
|
||||
|
||||
|
||||
@onready var game_server: GameServer = $game_server
|
||||
@@ -27,7 +28,15 @@ class_name GameCore extends Node
|
||||
#
|
||||
|
||||
|
||||
func _init() -> void:
|
||||
instance = self
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
instance.run()
|
||||
|
||||
|
||||
func run() -> void:
|
||||
_load_scene()
|
||||
_parse_args()
|
||||
|
||||
@@ -93,7 +102,7 @@ func server_(arg: String) -> void:
|
||||
func host_(arg: String) -> void:
|
||||
var game_mode = arg.split("_")[1]
|
||||
var match_name = OS.get_cmdline_user_args()[-1]
|
||||
|
||||
push_warning(get_path())
|
||||
while not $scene/lobby_screen.client.lobby_fully_connected:
|
||||
await get_tree().process_frame
|
||||
|
||||
|
||||
Reference in New Issue
Block a user