Align patterns better around what UI components are. Move script related controllers to scripts folder
This commit is contained in:
18
scripts/data/game_data.gd
Normal file
18
scripts/data/game_data.gd
Normal file
@@ -0,0 +1,18 @@
|
||||
class_name GameData extends Node
|
||||
|
||||
|
||||
var game_address: String = "0.0.0.0"
|
||||
var game_port: int = 8080
|
||||
|
||||
|
||||
func _init() -> void:
|
||||
Globals.game_data = self
|
||||
|
||||
|
||||
@rpc("authority", "reliable")
|
||||
func set_game_address(_address: String) -> void:
|
||||
pass
|
||||
|
||||
@rpc("authority", "reliable")
|
||||
func set_game_port(_port: String) -> void:
|
||||
pass
|
||||
Reference in New Issue
Block a user