Struct CampaignTime
- Namespace
- TaleWorlds.CampaignSystem
- Assembly
- TaleWorlds.CampaignSystem.dll
public struct CampaignTime : IComparable<CampaignTime>
- Implements
- Inherited Members
- Extension Methods
Fields
DaysInSeason
public const int DaysInSeason = 21
Field Value
DaysInWeek
public const int DaysInWeek = 7
Field Value
DaysInYear
public const int DaysInYear = 84
Field Value
HoursInDay
public const int HoursInDay = 24
Field Value
MinutesInHour
public const int MinutesInHour = 60
Field Value
SeasonsInYear
public const int SeasonsInYear = 4
Field Value
SunRise
public const int SunRise = 2
Field Value
SunSet
public const int SunSet = 22
Field Value
WeeksInSeason
public const int WeeksInSeason = 3
Field Value
Properties
CurrentHourInDay
public float CurrentHourInDay { get; }
Property Value
DeltaTime
public static CampaignTime DeltaTime { get; }
Property Value
ElapsedDaysUntilNow
public float ElapsedDaysUntilNow { get; }
Property Value
ElapsedHoursUntilNow
public float ElapsedHoursUntilNow { get; }
Property Value
ElapsedMillisecondsUntilNow
public float ElapsedMillisecondsUntilNow { get; }
Property Value
ElapsedSeasonsUntilNow
public float ElapsedSeasonsUntilNow { get; }
Property Value
ElapsedSecondsUntilNow
public float ElapsedSecondsUntilNow { get; }
Property Value
ElapsedWeeksUntilNow
public float ElapsedWeeksUntilNow { get; }
Property Value
ElapsedYearsUntilNow
public float ElapsedYearsUntilNow { get; }
Property Value
GetDayOfSeason
public int GetDayOfSeason { get; }
Property Value
GetDayOfWeek
public int GetDayOfWeek { get; }
Property Value
GetDayOfYear
public int GetDayOfYear { get; }
Property Value
GetHourOfDay
public int GetHourOfDay { get; }
Property Value
GetSeasonOfYear
public CampaignTime.Seasons GetSeasonOfYear { get; }
Property Value
GetWeekOfSeason
public int GetWeekOfSeason { get; }
Property Value
GetYear
public int GetYear { get; }
Property Value
IsDayTime
public bool IsDayTime { get; }
Property Value
IsFuture
public bool IsFuture { get; }
Property Value
IsNightTime
public bool IsNightTime { get; }
Property Value
IsNow
public bool IsNow { get; }
Property Value
IsPast
public bool IsPast { get; }
Property Value
Never
public static CampaignTime Never { get; }
Property Value
Now
public static CampaignTime Now { get; }
Property Value
RemainingDaysFromNow
public float RemainingDaysFromNow { get; }
Property Value
RemainingHoursFromNow
public float RemainingHoursFromNow { get; }
Property Value
RemainingMillisecondsFromNow
public float RemainingMillisecondsFromNow { get; }
Property Value
RemainingSeasonsFromNow
public float RemainingSeasonsFromNow { get; }
Property Value
RemainingSecondsFromNow
public float RemainingSecondsFromNow { get; }
Property Value
RemainingWeeksFromNow
public float RemainingWeeksFromNow { get; }
Property Value
RemainingYearsFromNow
public float RemainingYearsFromNow { get; }
Property Value
ToDays
public double ToDays { get; }
Property Value
ToHours
public double ToHours { get; }
Property Value
ToMilliseconds
public double ToMilliseconds { get; }
Property Value
ToMinutes
public double ToMinutes { get; }
Property Value
ToSeasons
public double ToSeasons { get; }
Property Value
ToSeconds
public double ToSeconds { get; }
Property Value
ToWeeks
public double ToWeeks { get; }
Property Value
ToYears
public double ToYears { get; }
Property Value
Zero
public static CampaignTime Zero { get; }
Property Value
Methods
AutoGeneratedStaticCollectObjectsCampaignTime(object, List<object>)
public static void AutoGeneratedStaticCollectObjectsCampaignTime(object o, List<object> collectedObjects)
Parameters
CompareTo(CampaignTime)
public int CompareTo(CampaignTime other)
Parameters
other
CampaignTime
Returns
Days(float)
public static CampaignTime Days(float valueInDays)
Parameters
valueInDays
float
Returns
DaysFromNow(float)
public static CampaignTime DaysFromNow(float valueInDays)
Parameters
valueInDays
float
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
Equals(CampaignTime)
public bool Equals(CampaignTime other)
Parameters
other
CampaignTime
Returns
GetHashCode()
public override int GetHashCode()
Returns
Hours(float)
public static CampaignTime Hours(float valueInHours)
Parameters
valueInHours
float
Returns
HoursFromNow(float)
public static CampaignTime HoursFromNow(float valueInHours)
Parameters
valueInHours
float
Returns
Milliseconds(long)
public static CampaignTime Milliseconds(long valueInMilliseconds)
Parameters
valueInMilliseconds
long
Returns
MillisecondsFromNow(long)
public static CampaignTime MillisecondsFromNow(long valueInMilliseconds)
Parameters
valueInMilliseconds
long
Returns
Minutes(long)
public static CampaignTime Minutes(long valueInMinutes)
Parameters
valueInMinutes
long
Returns
MinutesFromNow(long)
public static CampaignTime MinutesFromNow(long valueInMinutes)
Parameters
valueInMinutes
long
Returns
Seconds(long)
public static CampaignTime Seconds(long valueInSeconds)
Parameters
valueInSeconds
long
Returns
SecondsFromNow(long)
public static CampaignTime SecondsFromNow(long valueInSeconds)
Parameters
valueInSeconds
long
Returns
StringSameAs(CampaignTime)
public bool StringSameAs(CampaignTime otherTime)
Parameters
otherTime
CampaignTime
Returns
ToString()
public override string ToString()
Returns
Weeks(float)
public static CampaignTime Weeks(float valueInWeeeks)
Parameters
valueInWeeeks
float
Returns
WeeksFromNow(float)
public static CampaignTime WeeksFromNow(float valueInWeeks)
Parameters
valueInWeeks
float
Returns
Years(float)
public static CampaignTime Years(float valueInYears)
Parameters
valueInYears
float
Returns
YearsFromNow(float)
public static CampaignTime YearsFromNow(float valueInYears)
Parameters
valueInYears
float
Returns
Operators
operator +(CampaignTime, CampaignTime)
public static CampaignTime operator +(CampaignTime g1, CampaignTime g2)
Parameters
g1
CampaignTimeg2
CampaignTime
Returns
operator ==(CampaignTime, CampaignTime)
public static bool operator ==(CampaignTime x, CampaignTime y)
Parameters
Returns
operator >(CampaignTime, CampaignTime)
public static bool operator >(CampaignTime x, CampaignTime y)
Parameters
Returns
operator >=(CampaignTime, CampaignTime)
public static bool operator >=(CampaignTime x, CampaignTime y)
Parameters
Returns
operator !=(CampaignTime, CampaignTime)
public static bool operator !=(CampaignTime x, CampaignTime y)
Parameters
Returns
operator <(CampaignTime, CampaignTime)
public static bool operator <(CampaignTime x, CampaignTime y)
Parameters
Returns
operator <=(CampaignTime, CampaignTime)
public static bool operator <=(CampaignTime x, CampaignTime y)
Parameters
Returns
operator -(CampaignTime, CampaignTime)
public static CampaignTime operator -(CampaignTime g1, CampaignTime g2)
Parameters
g1
CampaignTimeg2
CampaignTime
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).