Removes IOnStateChanged calls from GameplayStateLoadController (#14617)

This commit is contained in:
Flipp Syder
2023-03-12 18:02:14 -07:00
committed by GitHub
parent 05f2111236
commit 349eae0b70

View File

@@ -3,21 +3,11 @@ using Robust.Client.UserInterface.Controllers;
namespace Content.Client.UserInterface.Systems.Gameplay;
public sealed class GameplayStateLoadController : UIController, IOnStateChanged<GameplayState>
public sealed class GameplayStateLoadController : UIController
{
public Action? OnScreenLoad;
public Action? OnScreenUnload;
public void OnStateEntered(GameplayState state)
{
LoadScreen();
}
public void OnStateExited(GameplayState state)
{
UnloadScreen();
}
public void UnloadScreen()
{
OnScreenUnload?.Invoke();