Table of Contents

Class WorldTimeConstants

Namespace
Shard.Gameplay.Universe.World
Assembly
Shard.Gameplay.Universe.dll

Calendar units shared by world time simulation, derived from clock durations.

public static class WorldTimeConstants
Inheritance
WorldTimeConstants
Inherited Members

Remarks

The daylight and night split is gameplay structure and lives on WorldTime.

Fields

DaysPerYear

public const int DaysPerYear = 365

Field Value

int

HoursPerDay

public const int HoursPerDay = 24

Field Value

int

NanosecondsPerDay

public const long NanosecondsPerDay = 86400000000000

Field Value

long

SecondsPerDay

public const int SecondsPerDay = 86400

Field Value

int

SecondsPerEstimatedYear

Length of Java's ChronoUnit.YEARS estimated duration, the mean Gregorian year of 365.2425 days. .NET has no equivalent temporal unit, so the value is spelled out.

public const long SecondsPerEstimatedYear = 31556952

Field Value

long