Files
tbd-station-14/Content.IntegrationTests/DummyGameTicker.cs
Víctor Aguilera Puerto e1df008bce Add conditional spawning component (#1069)
* Add conditional spawning component

* Remove null checks

* Remove leftover return

* Properly spawn items when game rule gets added

* Fix duplicate uids in saltern

* GameRules returns IEnumerable using yield.
2020-06-05 19:42:43 +02:00

93 lines
2.0 KiB
C#

using System;
using System.Collections.Generic;
using Content.Server.GameTicking;
using Content.Server.Interfaces.GameTicking;
using Content.Shared;
using Robust.Server.Interfaces.Player;
using Robust.Shared.Map;
using Robust.Shared.Timing;
namespace Content.IntegrationTests
{
public class DummyGameTicker : SharedGameTicker, IGameTicker
{
public GameRunLevel RunLevel { get; } = GameRunLevel.InRound;
public event Action<GameRunLevelChangedEventArgs> OnRunLevelChanged
{
add { }
remove { }
}
public event Action<GameRuleAddedEventArgs> OnRuleAdded
{
add{ }
remove { }
}
public void Initialize()
{
}
public void Update(FrameEventArgs frameEventArgs)
{
}
public void RestartRound()
{
}
public void StartRound()
{
}
public void EndRound()
{
}
public void Respawn(IPlayerSession targetPlayer)
{
}
public void MakeObserve(IPlayerSession player)
{
}
public void MakeJoinGame(IPlayerSession player)
{
}
public void ToggleReady(IPlayerSession player, bool ready)
{
}
public GridCoordinates GetLateJoinSpawnPoint() => GridCoordinates.InvalidGrid;
public GridCoordinates GetJobSpawnPoint(string jobId) => GridCoordinates.InvalidGrid;
public GridCoordinates GetObserverSpawnPoint() => GridCoordinates.InvalidGrid;
public T AddGameRule<T>() where T : GameRule, new()
{
return new T();
}
public bool HasGameRule(Type type)
{
return false;
}
public void RemoveGameRule(GameRule rule)
{
}
public IEnumerable<GameRule> ActiveGameRules { get; } = Array.Empty<GameRule>();
public void SetStartPreset(Type type)
{
}
public void SetStartPreset(string type)
{
}
}
}