Voting (#3185)
* Basic voting * Rewrite lobby in XAML. Working lobby voting. * Escape menu is now XAML. * Vote menu works, custom votes, gamemode votes. * Vote timeouts & administration. Basically done now. * I will now pretend I was never planning to code voting hotkeys. * Make vote call UI a bit... funny. * Fix exception on round restart. * Fix some vote command definitions.
This commit is contained in:
committed by
GitHub
parent
db290fd91e
commit
cea87d6985
@@ -11,6 +11,7 @@ using Content.Server.Interfaces.Chat;
|
||||
using Content.Server.Interfaces.GameTicking;
|
||||
using Content.Server.Interfaces.PDA;
|
||||
using Content.Server.Sandbox;
|
||||
using Content.Server.Voting;
|
||||
using Content.Shared.Actions;
|
||||
using Content.Shared.Kitchen;
|
||||
using Content.Shared.Alert;
|
||||
@@ -28,6 +29,7 @@ namespace Content.Server
|
||||
private IGameTicker _gameTicker;
|
||||
private EuiManager _euiManager;
|
||||
private StatusShell _statusShell;
|
||||
private IVoteManager _voteManager;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -55,6 +57,7 @@ namespace Content.Server
|
||||
|
||||
_gameTicker = IoCManager.Resolve<IGameTicker>();
|
||||
_euiManager = IoCManager.Resolve<EuiManager>();
|
||||
_voteManager = IoCManager.Resolve<IVoteManager>();
|
||||
|
||||
IoCManager.Resolve<IServerNotifyManager>().Initialize();
|
||||
IoCManager.Resolve<IChatManager>().Initialize();
|
||||
@@ -73,6 +76,7 @@ namespace Content.Server
|
||||
IoCManager.Resolve<INodeGroupFactory>().Initialize();
|
||||
IoCManager.Resolve<ISandboxManager>().Initialize();
|
||||
IoCManager.Resolve<IAccentManager>().Initialize();
|
||||
_voteManager.Initialize();
|
||||
}
|
||||
|
||||
public override void PostInit()
|
||||
@@ -105,6 +109,7 @@ namespace Content.Server
|
||||
case ModUpdateLevel.PostEngine:
|
||||
{
|
||||
_euiManager.SendUpdates();
|
||||
_voteManager.Update();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user