-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBattleDebugLifetimeScope.cs
37 lines (33 loc) · 1.88 KB
/
BattleDebugLifetimeScope.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using App.BattleDebug.Data;
using App.BattleDebug.Presenters;
using App.BattleDebug.UseCases;
using UnityEngine;
using VContainer;
using VContainer.Unity;
namespace App.BattleDebug
{
public class BattleDebugLifetimeScope : LifetimeScope
{
[SerializeField] private BattleCardDebugger _BattlePlayerCardDebugger;
[SerializeField] private BattleDebugDeckPresenter _BattleDebugDeckPresenter;
[SerializeField] private BattleDebugBattleAreaPresenter _BattleDebugBattleAreaPresenter;
[SerializeField] private BattleDebugStageAreaPresenter _BattleDebugStageAreaPresenter;
[SerializeField] private BattleDebugSupportAreaPresenter _BattleDebugSupportAreaPresenter;
[SerializeField] private BattleDebugPhasePresenter _BattleDebugPhasePresenter;
[SerializeField] private BattleDebugBattlePresenter _BattleDebugBattlePresenter;
protected override void Configure(IContainerBuilder builder)
{
builder.RegisterInstance(_BattlePlayerCardDebugger);
builder.RegisterComponent(_BattleDebugDeckPresenter).AsImplementedInterfaces();
builder.RegisterComponent(_BattleDebugBattleAreaPresenter).AsImplementedInterfaces();
builder.RegisterComponent(_BattleDebugStageAreaPresenter).AsImplementedInterfaces();
builder.RegisterComponent(_BattleDebugSupportAreaPresenter).AsImplementedInterfaces();
builder.RegisterComponent(_BattleDebugPhasePresenter).AsImplementedInterfaces();
builder.RegisterComponent(_BattleDebugBattlePresenter).AsImplementedInterfaces();
builder.RegisterEntryPoint<BattleDebugUseCase>();
builder.RegisterEntryPoint<BattleDebugPlayerCardUseCase>();
builder.RegisterEntryPoint<BattleDebugPhaseUseCase>();
builder.RegisterEntryPoint<BattleDebugBattleUseCase>();
}
}
}