From 349eae0b707c5c039198df83bad2e85f75b7a117 Mon Sep 17 00:00:00 2001 From: Flipp Syder <76629141+vulppine@users.noreply.github.com> Date: Sun, 12 Mar 2023 18:02:14 -0700 Subject: [PATCH] Removes IOnStateChanged calls from GameplayStateLoadController (#14617) --- .../Systems/Gameplay/GameplayStateLoadController.cs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Content.Client/UserInterface/Systems/Gameplay/GameplayStateLoadController.cs b/Content.Client/UserInterface/Systems/Gameplay/GameplayStateLoadController.cs index 32906238b1..8ec4b260c1 100644 --- a/Content.Client/UserInterface/Systems/Gameplay/GameplayStateLoadController.cs +++ b/Content.Client/UserInterface/Systems/Gameplay/GameplayStateLoadController.cs @@ -3,21 +3,11 @@ using Robust.Client.UserInterface.Controllers; namespace Content.Client.UserInterface.Systems.Gameplay; -public sealed class GameplayStateLoadController : UIController, IOnStateChanged +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(); -- 2.52.0