Extremely basic game ticker. (#126)

You can theoretically restart the round (resetting the map) now, but it breaks very badly if a client is connected due to various edge cases/race conditions.
This commit is contained in:
Pieter-Jan Briers
2018-11-22 10:37:58 +01:00
committed by GitHub
parent 744af3be3e
commit 574512f1bf
8 changed files with 345 additions and 65 deletions

View File

@@ -0,0 +1,23 @@
using Content.Server.GameTicking;
using SS14.Shared.Interfaces.GameObjects;
using SS14.Shared.Timing;
namespace Content.Server.Interfaces.GameTicking
{
/// <summary>
/// The game ticker is responsible for managing the round-by-round system of the game.
/// </summary>
public interface IGameTicker
{
GameRunLevel RunLevel { get; }
void Initialize();
void Update(FrameEventArgs frameEventArgs);
void RestartRound();
void StartRound();
void EndRound();
IEntity SpawnPlayerMob();
}
}