14 lines
432 B
C#
14 lines
432 B
C#
namespace SpaceGame.Api.Universe.Simulation;
|
|
|
|
public interface ITimeService
|
|
{
|
|
int TickIntervalMs { get; }
|
|
TimeSpan TickInterval { get; }
|
|
float TickDeltaSeconds { get; }
|
|
double SimulatedSecondsPerRealSecond { get; }
|
|
DateTimeOffset UtcNow();
|
|
float ScaleSimulationDelta(float realDeltaSeconds);
|
|
double ScaleOrbitalDelta(float simulationDeltaSeconds);
|
|
double CreateInitialOrbitalTimeSeconds(int seed);
|
|
}
|