using Godot; using GodotHostTest.GodotDI; using GodotHostTest.Interfaces; using Microsoft.Extensions.DependencyInjection; namespace GodotHostTest.Game; public partial class LevelServiceSource : RootServiceSource { [Export] private TargetSpawner _targetSpawner = null!; protected override void Configure(IServiceCollection serviceCollection) { serviceCollection .AddSingleton(_targetSpawner) .AddSingleton(_targetSpawner); } }