]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Removes IOnStateChanged calls from GameplayStateLoadController (#14617)
authorFlipp Syder <76629141+vulppine@users.noreply.github.com>
Mon, 13 Mar 2023 01:02:14 +0000 (18:02 -0700)
committerGitHub <noreply@github.com>
Mon, 13 Mar 2023 01:02:14 +0000 (21:02 -0400)
Content.Client/UserInterface/Systems/Gameplay/GameplayStateLoadController.cs

index 32906238b1c3158c6ead71d0df698623dbe9ac32..8ec4b260c1da8a8dadaedbd10ab3cb4145adc553 100644 (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();