/// <summary> /// Assigns situation-specific default values to the ValueRange. The given values will be /// used by draw() unless they are specifically overridden by a ConfigNode. Does not throw /// exceptions. /// </summary> /// <param name="dist">The distribution from which the value will be drawn.</param> /// <param name="type">The description of orbit position that is used.</param> /// <param name="epoch">The time at which the orbit position should be measured.</param> /// <param name="min">The minimum value allowed for distributions. May be unused.</param> /// <param name="max">The maximum value allowed for distributions. May be unused.</param> /// <param name="avg">The mean value returned. May be unused.</param> /// <param name="stddev">The standard deviation of values returned. May be unused.</param> internal PhaseRange(Distribution dist, PhaseType type = PhaseType.MeanAnomaly, EpochType epoch = EpochType.GameStart, double min = 0.0, double max = 1.0, double avg = 0.0, double stddev = 0.0) : base(dist, min, max, avg, stddev) { this.type = type; this.epoch = epoch; }
public DateTimeEpochConverter(Serializer serializer, EpochType type) { _type = type; _innerConverter = serializer.GetConverter <long>(); }
public static string ToFastString(this EpochType type) => type switch {
public static string Epoch(EpochType epoch) => $"{Index}/epochs/{epoch.ToFastString().ToLowerInvariant()}";
public EpochAttribute(EpochType type) { Type = type; }