Removes IOnStateChanged calls from GameplayStateLoadController (#14617)
This commit is contained in:
@@ -3,21 +3,11 @@ using Robust.Client.UserInterface.Controllers;
|
|||||||
|
|
||||||
namespace Content.Client.UserInterface.Systems.Gameplay;
|
namespace Content.Client.UserInterface.Systems.Gameplay;
|
||||||
|
|
||||||
public sealed class GameplayStateLoadController : UIController, IOnStateChanged<GameplayState>
|
public sealed class GameplayStateLoadController : UIController
|
||||||
{
|
{
|
||||||
public Action? OnScreenLoad;
|
public Action? OnScreenLoad;
|
||||||
public Action? OnScreenUnload;
|
public Action? OnScreenUnload;
|
||||||
|
|
||||||
public void OnStateEntered(GameplayState state)
|
|
||||||
{
|
|
||||||
LoadScreen();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void OnStateExited(GameplayState state)
|
|
||||||
{
|
|
||||||
UnloadScreen();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void UnloadScreen()
|
public void UnloadScreen()
|
||||||
{
|
{
|
||||||
OnScreenUnload?.Invoke();
|
OnScreenUnload?.Invoke();
|
||||||
|
|||||||
Reference in New Issue
Block a user