22 lines
628 B
C#
22 lines
628 B
C#
using Godot;
|
|
using GodotHostTest.Game.Level;
|
|
using GodotHostTest.Game.Score;
|
|
using GodotHostTest.Game.Target;
|
|
using GodotHostTest.Interfaces;
|
|
using OwofGames.GodotLume;
|
|
using RootServiceSource = GodotHostTest.AetherBind.RootServiceSource;
|
|
|
|
namespace GodotHostTest.Game.Root;
|
|
|
|
public partial class GameServiceSource : RootServiceSource
|
|
{
|
|
[Export] private LevelsData _levelsData = null!;
|
|
|
|
protected override void Configure(Builder builder)
|
|
{
|
|
builder
|
|
.AddSingleton<ITargetEventBus, TargetEventBus>()
|
|
.AddSingleton<IScore, TotalScore>()
|
|
.AddLevelServices(_levelsData);
|
|
}
|
|
} |