M&B: Bannerlord 1.2.12
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.CampaignTime Struct Reference

Inherits IComparable< CampaignTime >.

Public Types

enum  Seasons {
  Spring = 0 ,
  Summer = 1 ,
  Autumn = 2 ,
  Winter = 3
}
 

Public Member Functions

bool Equals (CampaignTime other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
int CompareTo (CampaignTime other)
 
bool StringSameAs (CampaignTime otherTime)
 
override string ToString ()
 

Static Public Member Functions

static bool operator< (CampaignTime x, CampaignTime y)
 
static bool operator> (CampaignTime x, CampaignTime y)
 
static bool operator== (CampaignTime x, CampaignTime y)
 
static bool operator!= (CampaignTime x, CampaignTime y)
 
static bool operator<= (CampaignTime x, CampaignTime y)
 
static bool operator>= (CampaignTime x, CampaignTime y)
 
static CampaignTime Milliseconds (long valueInMilliseconds)
 
static CampaignTime MillisecondsFromNow (long valueInMilliseconds)
 
static CampaignTime Seconds (long valueInSeconds)
 
static CampaignTime SecondsFromNow (long valueInSeconds)
 
static CampaignTime Minutes (long valueInMinutes)
 
static CampaignTime MinutesFromNow (long valueInMinutes)
 
static CampaignTime Hours (float valueInHours)
 
static CampaignTime HoursFromNow (float valueInHours)
 
static CampaignTime Days (float valueInDays)
 
static CampaignTime DaysFromNow (float valueInDays)
 
static CampaignTime Weeks (float valueInWeeeks)
 
static CampaignTime WeeksFromNow (float valueInWeeks)
 
static CampaignTime Years (float valueInYears)
 
static CampaignTime YearsFromNow (float valueInYears)
 
static CampaignTime operator+ (CampaignTime g1, CampaignTime g2)
 
static CampaignTime operator- (CampaignTime g1, CampaignTime g2)
 

Static Public Attributes

const int SunRise = 2
 
const int SunSet = 22
 
const int MinutesInHour = 60
 
const int HoursInDay = 24
 
const int DaysInWeek = 7
 
const int WeeksInSeason = 3
 
const int SeasonsInYear = 4
 
const int DaysInSeason = WeeksInSeason * DaysInWeek
 
const int DaysInYear = DaysInSeason * SeasonsInYear
 

Properties

static CampaignTime DeltaTime [get]
 
static CampaignTime Now [get]
 
static CampaignTime Never [get]
 
bool IsFuture [get]
 
bool IsPast [get]
 
bool IsNow [get]
 
bool IsDayTime [get]
 
float CurrentHourInDay [get]
 
bool IsNightTime [get]
 
float ElapsedMillisecondsUntilNow [get]
 
float ElapsedSecondsUntilNow [get]
 
float ElapsedHoursUntilNow [get]
 
float ElapsedDaysUntilNow [get]
 
float ElapsedWeeksUntilNow [get]
 
float ElapsedSeasonsUntilNow [get]
 
float ElapsedYearsUntilNow [get]
 
float RemainingMillisecondsFromNow [get]
 
float RemainingSecondsFromNow [get]
 
float RemainingHoursFromNow [get]
 
float RemainingDaysFromNow [get]
 
float RemainingWeeksFromNow [get]
 
float RemainingSeasonsFromNow [get]
 
float RemainingYearsFromNow [get]
 
double ToMilliseconds [get]
 
double ToSeconds [get]
 
double ToMinutes [get]
 
double ToHours [get]
 
double ToDays [get]
 
double ToWeeks [get]
 
double ToSeasons [get]
 
double ToYears [get]
 
int GetHourOfDay [get]
 
int GetDayOfWeek [get]
 
int GetDayOfSeason [get]
 
int GetDayOfYear [get]
 
int GetWeekOfSeason [get]
 
Seasons GetSeasonOfYear [get]
 
int GetYear [get]
 
static CampaignTime Zero [get]
 

Member Enumeration Documentation

◆ Seasons

Enumerator
Spring 
Summer 
Autumn 
Winter 

Member Function Documentation

◆ Equals() [1/2]

bool TaleWorlds.CampaignSystem.CampaignTime.Equals ( CampaignTime other)

◆ Equals() [2/2]

override bool TaleWorlds.CampaignSystem.CampaignTime.Equals ( object obj)

◆ GetHashCode()

override int TaleWorlds.CampaignSystem.CampaignTime.GetHashCode ( )

◆ CompareTo()

int TaleWorlds.CampaignSystem.CampaignTime.CompareTo ( CampaignTime other)

◆ operator<()

static bool TaleWorlds.CampaignSystem.CampaignTime.operator< ( CampaignTime x,
CampaignTime y )
static

◆ operator>()

static bool TaleWorlds.CampaignSystem.CampaignTime.operator> ( CampaignTime x,
CampaignTime y )
static

◆ operator==()

static bool TaleWorlds.CampaignSystem.CampaignTime.operator== ( CampaignTime x,
CampaignTime y )
static

◆ operator!=()

static bool TaleWorlds.CampaignSystem.CampaignTime.operator!= ( CampaignTime x,
CampaignTime y )
static

◆ operator<=()

static bool TaleWorlds.CampaignSystem.CampaignTime.operator<= ( CampaignTime x,
CampaignTime y )
static

◆ operator>=()

static bool TaleWorlds.CampaignSystem.CampaignTime.operator>= ( CampaignTime x,
CampaignTime y )
static

◆ Milliseconds()

static CampaignTime TaleWorlds.CampaignSystem.CampaignTime.Milliseconds ( long valueInMilliseconds)
static

◆ MillisecondsFromNow()

static CampaignTime TaleWorlds.CampaignSystem.CampaignTime.MillisecondsFromNow ( long valueInMilliseconds)
static

◆ Seconds()

static CampaignTime TaleWorlds.CampaignSystem.CampaignTime.Seconds ( long valueInSeconds)
static

◆ SecondsFromNow()

static CampaignTime TaleWorlds.CampaignSystem.CampaignTime.SecondsFromNow ( long valueInSeconds)
static

◆ Minutes()

static CampaignTime TaleWorlds.CampaignSystem.CampaignTime.Minutes ( long valueInMinutes)
static

◆ MinutesFromNow()

static CampaignTime TaleWorlds.CampaignSystem.CampaignTime.MinutesFromNow ( long valueInMinutes)
static

◆ Hours()

static CampaignTime TaleWorlds.CampaignSystem.CampaignTime.Hours ( float valueInHours)
static

◆ HoursFromNow()

static CampaignTime TaleWorlds.CampaignSystem.CampaignTime.HoursFromNow ( float valueInHours)
static

◆ Days()

static CampaignTime TaleWorlds.CampaignSystem.CampaignTime.Days ( float valueInDays)
static

◆ DaysFromNow()

static CampaignTime TaleWorlds.CampaignSystem.CampaignTime.DaysFromNow ( float valueInDays)
static

◆ Weeks()

static CampaignTime TaleWorlds.CampaignSystem.CampaignTime.Weeks ( float valueInWeeeks)
static

◆ WeeksFromNow()

static CampaignTime TaleWorlds.CampaignSystem.CampaignTime.WeeksFromNow ( float valueInWeeks)
static

◆ Years()

static CampaignTime TaleWorlds.CampaignSystem.CampaignTime.Years ( float valueInYears)
static

◆ YearsFromNow()

static CampaignTime TaleWorlds.CampaignSystem.CampaignTime.YearsFromNow ( float valueInYears)
static

◆ operator+()

static CampaignTime TaleWorlds.CampaignSystem.CampaignTime.operator+ ( CampaignTime g1,
CampaignTime g2 )
static

◆ operator-()

static CampaignTime TaleWorlds.CampaignSystem.CampaignTime.operator- ( CampaignTime g1,
CampaignTime g2 )
static

◆ StringSameAs()

bool TaleWorlds.CampaignSystem.CampaignTime.StringSameAs ( CampaignTime otherTime)

◆ ToString()

override string TaleWorlds.CampaignSystem.CampaignTime.ToString ( )

Member Data Documentation

◆ SunRise

const int TaleWorlds.CampaignSystem.CampaignTime.SunRise = 2
static

◆ SunSet

const int TaleWorlds.CampaignSystem.CampaignTime.SunSet = 22
static

◆ MinutesInHour

const int TaleWorlds.CampaignSystem.CampaignTime.MinutesInHour = 60
static

◆ HoursInDay

const int TaleWorlds.CampaignSystem.CampaignTime.HoursInDay = 24
static

◆ DaysInWeek

const int TaleWorlds.CampaignSystem.CampaignTime.DaysInWeek = 7
static

◆ WeeksInSeason

const int TaleWorlds.CampaignSystem.CampaignTime.WeeksInSeason = 3
static

◆ SeasonsInYear

const int TaleWorlds.CampaignSystem.CampaignTime.SeasonsInYear = 4
static

◆ DaysInSeason

const int TaleWorlds.CampaignSystem.CampaignTime.DaysInSeason = WeeksInSeason * DaysInWeek
static

◆ DaysInYear

const int TaleWorlds.CampaignSystem.CampaignTime.DaysInYear = DaysInSeason * SeasonsInYear
static

Property Documentation

◆ DeltaTime

CampaignTime TaleWorlds.CampaignSystem.CampaignTime.DeltaTime
staticget

◆ Now

CampaignTime TaleWorlds.CampaignSystem.CampaignTime.Now
staticget

◆ Never

CampaignTime TaleWorlds.CampaignSystem.CampaignTime.Never
staticget

◆ IsFuture

bool TaleWorlds.CampaignSystem.CampaignTime.IsFuture
get

◆ IsPast

bool TaleWorlds.CampaignSystem.CampaignTime.IsPast
get

◆ IsNow

bool TaleWorlds.CampaignSystem.CampaignTime.IsNow
get

◆ IsDayTime

bool TaleWorlds.CampaignSystem.CampaignTime.IsDayTime
get

◆ CurrentHourInDay

float TaleWorlds.CampaignSystem.CampaignTime.CurrentHourInDay
get

◆ IsNightTime

bool TaleWorlds.CampaignSystem.CampaignTime.IsNightTime
get

◆ ElapsedMillisecondsUntilNow

float TaleWorlds.CampaignSystem.CampaignTime.ElapsedMillisecondsUntilNow
get

◆ ElapsedSecondsUntilNow

float TaleWorlds.CampaignSystem.CampaignTime.ElapsedSecondsUntilNow
get

◆ ElapsedHoursUntilNow

float TaleWorlds.CampaignSystem.CampaignTime.ElapsedHoursUntilNow
get

◆ ElapsedDaysUntilNow

float TaleWorlds.CampaignSystem.CampaignTime.ElapsedDaysUntilNow
get

◆ ElapsedWeeksUntilNow

float TaleWorlds.CampaignSystem.CampaignTime.ElapsedWeeksUntilNow
get

◆ ElapsedSeasonsUntilNow

float TaleWorlds.CampaignSystem.CampaignTime.ElapsedSeasonsUntilNow
get

◆ ElapsedYearsUntilNow

float TaleWorlds.CampaignSystem.CampaignTime.ElapsedYearsUntilNow
get

◆ RemainingMillisecondsFromNow

float TaleWorlds.CampaignSystem.CampaignTime.RemainingMillisecondsFromNow
get

◆ RemainingSecondsFromNow

float TaleWorlds.CampaignSystem.CampaignTime.RemainingSecondsFromNow
get

◆ RemainingHoursFromNow

float TaleWorlds.CampaignSystem.CampaignTime.RemainingHoursFromNow
get

◆ RemainingDaysFromNow

float TaleWorlds.CampaignSystem.CampaignTime.RemainingDaysFromNow
get

◆ RemainingWeeksFromNow

float TaleWorlds.CampaignSystem.CampaignTime.RemainingWeeksFromNow
get

◆ RemainingSeasonsFromNow

float TaleWorlds.CampaignSystem.CampaignTime.RemainingSeasonsFromNow
get

◆ RemainingYearsFromNow

float TaleWorlds.CampaignSystem.CampaignTime.RemainingYearsFromNow
get

◆ ToMilliseconds

double TaleWorlds.CampaignSystem.CampaignTime.ToMilliseconds
get

◆ ToSeconds

double TaleWorlds.CampaignSystem.CampaignTime.ToSeconds
get

◆ ToMinutes

double TaleWorlds.CampaignSystem.CampaignTime.ToMinutes
get

◆ ToHours

double TaleWorlds.CampaignSystem.CampaignTime.ToHours
get

◆ ToDays

double TaleWorlds.CampaignSystem.CampaignTime.ToDays
get

◆ ToWeeks

double TaleWorlds.CampaignSystem.CampaignTime.ToWeeks
get

◆ ToSeasons

double TaleWorlds.CampaignSystem.CampaignTime.ToSeasons
get

◆ ToYears

double TaleWorlds.CampaignSystem.CampaignTime.ToYears
get

◆ GetHourOfDay

int TaleWorlds.CampaignSystem.CampaignTime.GetHourOfDay
get

◆ GetDayOfWeek

int TaleWorlds.CampaignSystem.CampaignTime.GetDayOfWeek
get

◆ GetDayOfSeason

int TaleWorlds.CampaignSystem.CampaignTime.GetDayOfSeason
get

◆ GetDayOfYear

int TaleWorlds.CampaignSystem.CampaignTime.GetDayOfYear
get

◆ GetWeekOfSeason

int TaleWorlds.CampaignSystem.CampaignTime.GetWeekOfSeason
get

◆ GetSeasonOfYear

Seasons TaleWorlds.CampaignSystem.CampaignTime.GetSeasonOfYear
get

◆ GetYear

int TaleWorlds.CampaignSystem.CampaignTime.GetYear
get

◆ Zero

CampaignTime TaleWorlds.CampaignSystem.CampaignTime.Zero
staticget