[add] New ghostrespawn system

This commit is contained in:
rhailrake
2023-04-28 07:13:28 +06:00
committed by Aviu00
parent 35e533b865
commit e458ec9fcd
9 changed files with 119 additions and 0 deletions

View File

@@ -120,6 +120,8 @@ public sealed class GhostUIController : UIController, IOnSystemChanged<GhostSyst
Gui.ReturnToBodyPressed += ReturnToBody;
Gui.GhostRolesPressed += GhostRolesPressed;
Gui.TargetWindow.WarpClicked += OnWarpClicked;
Gui.ReturnToRoundPressed += ReturnToRound;
UpdateGui();
}
@@ -133,6 +135,8 @@ public sealed class GhostUIController : UIController, IOnSystemChanged<GhostSyst
Gui.ReturnToBodyPressed -= ReturnToBody;
Gui.GhostRolesPressed -= GhostRolesPressed;
Gui.TargetWindow.WarpClicked -= OnWarpClicked;
Gui.ReturnToRoundPressed -= ReturnToRound;
Gui.Hide();
}
@@ -142,6 +146,11 @@ public sealed class GhostUIController : UIController, IOnSystemChanged<GhostSyst
_system?.ReturnToBody();
}
private void ReturnToRound()
{
_system?.ReturnToRound();
}
private void RequestWarps()
{
_system?.RequestWarps();