feat: cleanups and API updates

This commit is contained in:
redglow
2026-07-29 09:38:54 +02:00
parent fc1df2f740
commit 2c0a3f47a4
9 changed files with 68 additions and 46 deletions
+2 -2
View File
@@ -3,9 +3,9 @@ using GodotHostTest.AetherBind;
using GodotHostTest.Interfaces;
using OwofGames.AetherBind;
namespace GodotHostTest.Game.Root;
namespace GodotHostTest.Game.Game;
public partial class Root : Node2D
public partial class Game : Node2D
{
[Inject] private ICurrentLevel _currentLevel = null!;
[Inject] private ILevelDataProvider _levelDataProvider = null!;
@@ -8,7 +8,7 @@ using OwofGames.GodotHost.Observability;
using OwofGames.GodotLume;
using RootServiceSource = GodotHostTest.AetherBind.RootServiceSource;
namespace GodotHostTest.Game.Root;
namespace GodotHostTest.Game.Game;
public partial class GameServiceSource : RootServiceSource
{
+18
View File
@@ -0,0 +1,18 @@
[gd_scene format=3 uid="uid://vsburk37p4u"]
[ext_resource type="Script" uid="uid://bvjvojer872c8" path="res://Game/Game/Game.cs" id="1_iqet6"]
[ext_resource type="PackedScene" uid="uid://xfd48ep5qi1k" path="res://Game/Level/level.tscn" id="2_ft4gu"]
[ext_resource type="Script" uid="uid://bpes6mnv21f2v" path="res://Game/Game/GameServiceSource.cs" id="3_iqet6"]
[ext_resource type="Resource" uid="uid://c4ym7vrpgk4e6" path="res://Game/levels_data.tres" id="4_t2jh2"]
[ext_resource type="PackedScene" uid="uid://cvwvwv55n00ce" path="res://Game/Background/background.tscn" id="5_bbjqm"]
[node name="Root" type="Node2D" unique_id=920849082]
script = ExtResource("1_iqet6")
_levelScene = ExtResource("2_ft4gu")
[node name="Scope" type="Node" parent="." unique_id=597932533 node_paths=PackedStringArray("InjectedNodes")]
script = ExtResource("3_iqet6")
_levelsData = ExtResource("4_t2jh2")
InjectedNodes = [NodePath("..")]
[node name="Background" parent="." unique_id=701555148 instance=ExtResource("5_bbjqm")]
+1 -1
View File
@@ -5,8 +5,8 @@
[sub_resource type="Resource" id="Resource_bbjqm"]
script = ExtResource("1_bkfnq")
TimeBetweenSpawns = 1.0
SpawnDuration = 4.0
TimeBetweenSpawns = 1.0
metadata/_custom_type_script = "uid://ywe7vkywrdvk"
[resource]