From: Flipp Syder <76629141+vulppine@users.noreply.github.com> Date: Mon, 13 Mar 2023 01:02:14 +0000 (-0700) Subject: Removes IOnStateChanged calls from GameplayStateLoadController (#14617) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=349eae0b707c5c039198df83bad2e85f75b7a117;p=space-station-14.git Removes IOnStateChanged calls from GameplayStateLoadController (#14617) --- 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();