aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/GameSession.gd
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-05-12 17:17:32 +0200
committer GitHub <noreply@github.com>2024-05-12 17:17:32 +0200
commitbfccdb87d66304604ad018037db1581746646bfa (patch)
treeac4394e8ceaca22fa0deaeebd8cf5eafedecaa3e /game/src/Game/GameSession/GameSession.gd
parentb0a533f945bbc6201fd7df4bc60746cb98efaba4 (diff)
parentac29e4040fc20c50c8f0eb64b1194f6398165eb0 (diff)
Merge pull request #227 from OpenVicProject/models
Models
Diffstat (limited to 'game/src/Game/GameSession/GameSession.gd')
-rw-r--r--game/src/Game/GameSession/GameSession.gd4
1 files changed, 4 insertions, 0 deletions
diff --git a/game/src/Game/GameSession/GameSession.gd b/game/src/Game/GameSession/GameSession.gd
index f085073..843ecd8 100644
--- a/game/src/Game/GameSession/GameSession.gd
+++ b/game/src/Game/GameSession/GameSession.gd
@@ -1,5 +1,6 @@
extends Control
+@export var _model_manager : ModelManager
@export var _game_session_menu : Control
func _ready() -> void:
@@ -7,6 +8,9 @@ func _ready() -> void:
if GameSingleton.setup_game(0) != OK:
push_error("Failed to setup game")
+ _model_manager.generate_units()
+ _model_manager.generate_buildings()
+
func _process(_delta : float) -> void:
GameSingleton.try_tick()