Elin Modding Docs Doc
Loading...
Searching...
No Matches
VirtualDate Class Reference
Inheritance diagram for VirtualDate:
Date EClass

Public Member Functions

 VirtualDate (int elapsedHours=0)
 
BranchMap GetBranchMap ()
 
void BuildSunMap ()
 
void SimulateHour ()
 
void SimulateDay ()
 
void SimulateMonth ()
 
void SimulateYear ()
 
- Public Member Functions inherited from Date
Date Copy ()
 
override string ToString ()
 
void AddHour (int a)
 
void AddDay (int a)
 
void AddMonth (int a)
 
string GetText (Date.TextFormat format)
 
int GetRawReal (int offsetHours=0)
 
int GetRaw (int offsetHours=0)
 
int GetRawDay ()
 
bool IsExpired (int time)
 
int GetRemainingHours (int rawDeadLine)
 
int GetRemainingSecs (int rawDeadLine)
 
int GetElapsedMins (int rawDate)
 
int GetElapsedHour (int rawDate)
 

Public Attributes

bool IsRealTime
 
HashSet< int > sunMap
 
BranchMap branchMap
 
- Public Attributes inherited from Date
int[] raw = new int[6]
 

Static Public Attributes

static Date current
 
- Static Public Attributes inherited from Date
const int ShippingHour = 5
 
const int HourToken = 60
 
const int DayToken = 1440
 
const int MonthToken = 43200
 
const int YearToken = 518400
 
const int HourTokenReal = 60
 
const int DayTokenReal = 1440
 
const int MonthTokenReal = 46080
 
const int YearTokenReal = 552960
 
- Static Public Attributes inherited from EClass
static Core core
 

Properties

static bool IsActive [get]
 
- Properties inherited from Date
int year [get, set]
 
int month [get, set]
 
int day [get, set]
 
int hour [get, set]
 
int min [get, set]
 
int sec [get, set]
 
bool IsDay [get]
 
bool IsNight [get]
 
PeriodOfDay periodOfDay [get]
 
string NameMonth [get]
 
string NameMonthShort [get]
 
string NameTime [get]
 
bool IsSpring [get]
 
bool IsSummer [get]
 
bool IsAutumn [get]
 
bool IsWinter [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Public Types inherited from Date
enum  TextFormat {
  Default , Log , Widget , Schedule ,
  Travel , YearMonthDay , LogPlusYear
}
 
- Static Public Member Functions inherited from Date
static string GetText (int raw, Date.TextFormat format)
 
static string GetText (int hour)
 
static string GetText2 (int hour)
 
static string SecToDate (int sec)
 
static string MinToDayAndHour (int min)
 
static int[] GetDateArray (int raw)
 
static Date ToDate (int raw)
 
- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 

Detailed Description

Definition at line 6 of file VirtualDate.cs.

Constructor & Destructor Documentation

◆ VirtualDate()

VirtualDate.VirtualDate ( int elapsedHours = 0)

Definition at line 19 of file VirtualDate.cs.

Member Function Documentation

◆ BuildSunMap()

void VirtualDate.BuildSunMap ( )

Definition at line 64 of file VirtualDate.cs.

◆ GetBranchMap()

BranchMap VirtualDate.GetBranchMap ( )

Definition at line 53 of file VirtualDate.cs.

◆ SimulateDay()

void VirtualDate.SimulateDay ( )

Definition at line 91 of file VirtualDate.cs.

◆ SimulateHour()

void VirtualDate.SimulateHour ( )

Definition at line 78 of file VirtualDate.cs.

◆ SimulateMonth()

void VirtualDate.SimulateMonth ( )

Definition at line 104 of file VirtualDate.cs.

◆ SimulateYear()

void VirtualDate.SimulateYear ( )

Definition at line 117 of file VirtualDate.cs.

Member Data Documentation

◆ branchMap

BranchMap VirtualDate.branchMap

Definition at line 133 of file VirtualDate.cs.

◆ current

Date VirtualDate.current
static

Definition at line 124 of file VirtualDate.cs.

◆ IsRealTime

bool VirtualDate.IsRealTime

Definition at line 127 of file VirtualDate.cs.

◆ sunMap

HashSet<int> VirtualDate.sunMap

Definition at line 130 of file VirtualDate.cs.

Property Documentation

◆ IsActive

bool VirtualDate.IsActive
staticget

Definition at line 10 of file VirtualDate.cs.


The documentation for this class was generated from the following file: