feat: initial import
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using Godot;
|
||||
using GodotHostTest.GodotDI;
|
||||
using GodotHostTest.Interfaces;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace GodotHostTest.Game;
|
||||
|
||||
public partial class GameRootScope : RootScope
|
||||
{
|
||||
[Export] private TargetSpawner _targetSpawner = null!;
|
||||
|
||||
protected override void Configure(IServiceCollection serviceCollection)
|
||||
{
|
||||
serviceCollection
|
||||
.AddSingleton<ITargetCollector>(_targetSpawner)
|
||||
.AddSingleton<ITargetSpawner>(_targetSpawner);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user