CatStation/Content.Replay/EntryPoint.cs
Pieter-Jan Briers 5168b5f3d4
IoC source gen compatibility (#43863)
* IoC source gen compatibility

Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter.

* Missed a spot
2026-05-09 03:29:58 +00:00

34 lines
1 KiB
C#

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 partial class EntryPoint : GameClient
{
[Dependency] private IBaseClient _client = default!;
[Dependency] private IStateManager _stateMan = default!;
[Dependency] private ContentReplayPlaybackManager _contentReplayPlaybackMan = default!;
[Dependency] private IClientConGroupController _conGrp = default!;
public override void Init()
{
base.Init();
Dependencies.BuildGraph();
Dependencies.InjectDependencies(this);
}
public override void PostInit()
{
base.PostInit();
_client.StartSinglePlayer();
_conGrp.Implementation = new ReplayConGroup();
_contentReplayPlaybackMan.DefaultState = typeof(ReplayMainScreen);
_stateMan.RequestStateChange<ReplayMainScreen>();
}
}