forked from space-sunrise/lust-station
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEntryPoint.cs
34 lines (30 loc) · 1.02 KB
/
EntryPoint.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
using Content.Client.Replay;
using Content.Replay.Menu;
using JetBrains.Annotations;
using Robust.Client;
using Robust.Client.Console;
using Robust.Client.State;
using Robust.Shared.ContentPack;
namespace Content.Replay;
[UsedImplicitly]
public sealed class EntryPoint : GameClient
{
[Dependency] private readonly IBaseClient _client = default!;
[Dependency] private readonly IStateManager _stateMan = default!;
[Dependency] private readonly ContentReplayPlaybackManager _contentReplayPlaybackMan = default!;
[Dependency] private readonly IClientConGroupController _conGrp = default!;
public override void Init()
{
base.Init();
IoCManager.BuildGraph();
IoCManager.InjectDependencies(this);
}
public override void PostInit()
{
base.PostInit();
_client.StartSinglePlayer();
_conGrp.Implementation = new ReplayConGroup();
_contentReplayPlaybackMan.DefaultState = typeof(ReplayMainScreen);
_stateMan.RequestStateChange<ReplayMainScreen>();
}
}