2020-01-20 22:14:44 +01:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Content.Server.GameTicking;
|
|
|
|
|
using Content.Server.Interfaces.GameTicking;
|
2020-08-25 04:11:32 +10:00
|
|
|
using Content.Shared.Roles;
|
2020-01-20 22:14:44 +01:00
|
|
|
using Robust.Server.Interfaces.Player;
|
2020-08-25 04:11:32 +10:00
|
|
|
using Robust.Shared.Interfaces.GameObjects;
|
2020-03-03 20:37:26 +01:00
|
|
|
using Robust.Shared.Map;
|
2020-01-20 22:14:44 +01:00
|
|
|
using Robust.Shared.Timing;
|
|
|
|
|
|
|
|
|
|
namespace Content.IntegrationTests
|
|
|
|
|
{
|
2020-08-21 17:41:50 +02:00
|
|
|
public class DummyGameTicker : GameTickerBase, IGameTicker
|
2020-01-20 22:14:44 +01:00
|
|
|
{
|
|
|
|
|
public GameRunLevel RunLevel { get; } = GameRunLevel.InRound;
|
2020-01-21 02:07:25 +01:00
|
|
|
|
2020-10-09 23:47:56 +11:00
|
|
|
public MapId DefaultMap { get; } = MapId.Nullspace;
|
|
|
|
|
public GridId DefaultGridId { get; } = GridId.Invalid;
|
|
|
|
|
|
2020-01-21 02:07:25 +01:00
|
|
|
public event Action<GameRunLevelChangedEventArgs> OnRunLevelChanged
|
|
|
|
|
{
|
|
|
|
|
add { }
|
|
|
|
|
remove { }
|
|
|
|
|
}
|
2020-01-20 22:14:44 +01:00
|
|
|
|
2020-06-05 19:42:43 +02:00
|
|
|
public event Action<GameRuleAddedEventArgs> OnRuleAdded
|
|
|
|
|
{
|
|
|
|
|
add{ }
|
|
|
|
|
remove { }
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-20 22:14:44 +01:00
|
|
|
public void Update(FrameEventArgs frameEventArgs)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void RestartRound()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-21 22:05:47 +02:00
|
|
|
public void StartRound(bool force = false)
|
2020-01-20 22:14:44 +01:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-20 18:09:29 +02:00
|
|
|
public void EndRound(string roundEnd)
|
2020-01-20 22:14:44 +01:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Respawn(IPlayerSession targetPlayer)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void MakeObserve(IPlayerSession player)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-10 08:27:55 -05:00
|
|
|
public void MakeJoinGame(IPlayerSession player, string jobId)
|
2020-01-20 22:14:44 +01:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void ToggleReady(IPlayerSession player, bool ready)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-07 22:33:18 +12:00
|
|
|
public void ToggleDisallowLateJoin(bool disallowLateJoin)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-06 16:11:53 +02:00
|
|
|
public EntityCoordinates GetLateJoinSpawnPoint() => EntityCoordinates.Invalid;
|
|
|
|
|
public EntityCoordinates GetJobSpawnPoint(string jobId) => EntityCoordinates.Invalid;
|
|
|
|
|
public EntityCoordinates GetObserverSpawnPoint() => EntityCoordinates.Invalid;
|
|
|
|
|
|
2020-08-25 04:11:32 +10:00
|
|
|
public void EquipStartingGear(IEntity entity, StartingGearPrototype startingGear)
|
|
|
|
|
{
|
|
|
|
|
}
|
2020-03-03 20:37:26 +01:00
|
|
|
|
2020-01-20 22:14:44 +01:00
|
|
|
public T AddGameRule<T>() where T : GameRule, new()
|
|
|
|
|
{
|
2020-11-27 11:00:49 +01:00
|
|
|
return new();
|
2020-01-20 22:14:44 +01:00
|
|
|
}
|
|
|
|
|
|
2020-06-05 19:42:43 +02:00
|
|
|
public bool HasGameRule(Type type)
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-20 22:14:44 +01:00
|
|
|
public void RemoveGameRule(GameRule rule)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IEnumerable<GameRule> ActiveGameRules { get; } = Array.Empty<GameRule>();
|
|
|
|
|
|
2020-06-21 22:05:47 +02:00
|
|
|
public bool TryGetPreset(string name, out Type type)
|
|
|
|
|
{
|
|
|
|
|
type = default;
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetStartPreset(Type type, bool force = false)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetStartPreset(string name, bool force = false)
|
2020-01-20 22:14:44 +01:00
|
|
|
{
|
|
|
|
|
}
|
2020-02-08 21:23:37 +01:00
|
|
|
|
2020-06-21 22:05:47 +02:00
|
|
|
public bool DelayStart(TimeSpan time)
|
2020-02-08 21:23:37 +01:00
|
|
|
{
|
2020-06-21 22:05:47 +02:00
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool PauseStart(bool pause = true)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool TogglePause()
|
|
|
|
|
{
|
|
|
|
|
return false;
|
2020-02-08 21:23:37 +01:00
|
|
|
}
|
2020-07-10 08:27:55 -05:00
|
|
|
|
|
|
|
|
public Dictionary<string, int> GetAvailablePositions()
|
|
|
|
|
{
|
2020-11-27 11:00:49 +01:00
|
|
|
return new();
|
2020-07-10 08:27:55 -05:00
|
|
|
}
|
2020-01-20 22:14:44 +01:00
|
|
|
}
|
|
|
|
|
}
|