-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
80 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using OpenDreamRuntime.Procs; | ||
|
||
using Robust.Shared.IoC; | ||
using Robust.Shared.Timing; | ||
|
||
using System; | ||
|
||
namespace Content.Tests { | ||
sealed class DummyOpenDreamGameTiming : IOpenDreamGameTiming { | ||
|
||
[Dependency] IGameTiming gameTiming = null!; | ||
|
||
public GameTick CurTick { get; set; } | ||
|
||
public TimeSpan LastTick => gameTiming.LastTick; | ||
|
||
public TimeSpan RealTime => gameTiming.RealTime; | ||
|
||
public TimeSpan TickPeriod => gameTiming.TickPeriod; | ||
|
||
public byte TickRate { | ||
get => gameTiming.TickRate; | ||
set => gameTiming.TickRate = value; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Robust.Shared.Timing; | ||
|
||
namespace OpenDreamRuntime.Procs { | ||
public interface IOpenDreamGameTiming { | ||
public GameTick CurTick { get; } | ||
|
||
public TimeSpan LastTick { get; } | ||
|
||
public TimeSpan RealTime { get; } | ||
|
||
public TimeSpan TickPeriod { get; } | ||
|
||
public byte TickRate { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Robust.Shared.Timing; | ||
|
||
namespace OpenDreamRuntime.Procs { | ||
sealed class OpenDreamGameTiming : IOpenDreamGameTiming { | ||
[Dependency] private readonly IGameTiming _gameTiming = default!; | ||
|
||
public GameTick CurTick => _gameTiming.CurTick; | ||
|
||
public TimeSpan LastTick => _gameTiming.LastTick; | ||
|
||
public TimeSpan RealTime => _gameTiming.RealTime; | ||
|
||
public TimeSpan TickPeriod => _gameTiming.TickPeriod; | ||
|
||
public byte TickRate { | ||
get => _gameTiming.TickRate; | ||
set => _gameTiming.TickRate = value; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters