feat: aetherbind, first source generator
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using Godot;
|
||||
using GodotHostTest.AetherBind;
|
||||
using GodotHostTest.Game.Target;
|
||||
using GodotHostTest.Interfaces;
|
||||
using OwofGames.GodotLume;
|
||||
using ServiceSource = GodotHostTest.AetherBind.ServiceSource;
|
||||
|
||||
namespace GodotHostTest.Game.Level;
|
||||
|
||||
public partial class LevelServiceSource : ServiceSource
|
||||
{
|
||||
[Export] private TargetSpawner _targetSpawner = null!;
|
||||
|
||||
protected override void OnScopeCreated(IProvider serviceProvider)
|
||||
{
|
||||
serviceProvider.Get<IValueSetter<ITargetCollector>>().Set(_targetSpawner);
|
||||
serviceProvider.Get<IValueSetter<ITargetSpawner>>().Set(_targetSpawner);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user