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

Public Types

enum  TextFormat {
  Default , Log , Widget , Schedule ,
  Travel , YearMonthDay , LogPlusYear
}
 

Public Member Functions

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)
 

Static Public Member Functions

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)
 

Public Attributes

int[] raw = new int[6]
 

Static Public Attributes

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

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]
 

Detailed Description

Definition at line 5 of file Date.cs.

Member Enumeration Documentation

◆ TextFormat

enum Date.TextFormat

Definition at line 526 of file Date.cs.

Member Function Documentation

◆ AddDay()

void Date.AddDay ( int a)

Definition at line 241 of file Date.cs.

◆ AddHour()

void Date.AddHour ( int a)

Definition at line 230 of file Date.cs.

◆ AddMonth()

void Date.AddMonth ( int a)

Definition at line 252 of file Date.cs.

◆ Copy()

Date Date.Copy ( )

Definition at line 98 of file Date.cs.

◆ GetDateArray()

static int[] Date.GetDateArray ( int raw)
static

Definition at line 450 of file Date.cs.

◆ GetElapsedHour()

int Date.GetElapsedHour ( int rawDate)

Definition at line 410 of file Date.cs.

◆ GetElapsedMins()

int Date.GetElapsedMins ( int rawDate)

Definition at line 404 of file Date.cs.

◆ GetRaw()

int Date.GetRaw ( int offsetHours = 0)

Definition at line 374 of file Date.cs.

◆ GetRawDay()

int Date.GetRawDay ( )

Definition at line 380 of file Date.cs.

◆ GetRawReal()

int Date.GetRawReal ( int offsetHours = 0)

Definition at line 368 of file Date.cs.

◆ GetRemainingHours()

int Date.GetRemainingHours ( int rawDeadLine)

Definition at line 392 of file Date.cs.

◆ GetRemainingSecs()

int Date.GetRemainingSecs ( int rawDeadLine)

Definition at line 398 of file Date.cs.

◆ GetText() [1/3]

string Date.GetText ( Date.TextFormat format)

Definition at line 264 of file Date.cs.

◆ GetText() [2/3]

static string Date.GetText ( int hour)
static

Definition at line 340 of file Date.cs.

◆ GetText() [3/3]

static string Date.GetText ( int raw,
Date.TextFormat format )
static

Definition at line 334 of file Date.cs.

◆ GetText2()

static string Date.GetText2 ( int hour)
static

Definition at line 354 of file Date.cs.

◆ IsExpired()

bool Date.IsExpired ( int time)

Definition at line 386 of file Date.cs.

◆ MinToDayAndHour()

static string Date.MinToDayAndHour ( int min)
static

Definition at line 434 of file Date.cs.

◆ SecToDate()

static string Date.SecToDate ( int sec)
static

Definition at line 420 of file Date.cs.

◆ ToDate()

static Date Date.ToDate ( int raw)
static

Definition at line 463 of file Date.cs.

◆ ToString()

override string Date.ToString ( )

Definition at line 184 of file Date.cs.

Member Data Documentation

◆ DayToken

const int Date.DayToken = 1440
static

Definition at line 505 of file Date.cs.

◆ DayTokenReal

const int Date.DayTokenReal = 1440
static

Definition at line 517 of file Date.cs.

◆ HourToken

const int Date.HourToken = 60
static

Definition at line 502 of file Date.cs.

◆ HourTokenReal

const int Date.HourTokenReal = 60
static

Definition at line 514 of file Date.cs.

◆ MonthToken

const int Date.MonthToken = 43200
static

Definition at line 508 of file Date.cs.

◆ MonthTokenReal

const int Date.MonthTokenReal = 46080
static

Definition at line 520 of file Date.cs.

◆ raw

int [] Date.raw = new int[6]

Definition at line 499 of file Date.cs.

◆ ShippingHour

const int Date.ShippingHour = 5
static

Definition at line 495 of file Date.cs.

◆ YearToken

const int Date.YearToken = 518400
static

Definition at line 511 of file Date.cs.

◆ YearTokenReal

const int Date.YearTokenReal = 552960
static

Definition at line 523 of file Date.cs.

Property Documentation

◆ day

int Date.day
getset

Definition at line 40 of file Date.cs.

◆ hour

int Date.hour
getset

Definition at line 55 of file Date.cs.

◆ IsAutumn

bool Date.IsAutumn
get

Definition at line 211 of file Date.cs.

◆ IsDay

bool Date.IsDay
get

Definition at line 113 of file Date.cs.

◆ IsNight

bool Date.IsNight
get

Definition at line 123 of file Date.cs.

◆ IsSpring

bool Date.IsSpring
get

Definition at line 191 of file Date.cs.

◆ IsSummer

bool Date.IsSummer
get

Definition at line 201 of file Date.cs.

◆ IsWinter

bool Date.IsWinter
get

Definition at line 221 of file Date.cs.

◆ min

int Date.min
getset

Definition at line 70 of file Date.cs.

◆ month

int Date.month
getset

Definition at line 25 of file Date.cs.

◆ NameMonth

string Date.NameMonth
get

Definition at line 155 of file Date.cs.

◆ NameMonthShort

string Date.NameMonthShort
get

Definition at line 165 of file Date.cs.

◆ NameTime

string Date.NameTime
get

Definition at line 175 of file Date.cs.

◆ periodOfDay

PeriodOfDay Date.periodOfDay
get

Definition at line 133 of file Date.cs.

◆ sec

int Date.sec
getset

Definition at line 85 of file Date.cs.

◆ year

int Date.year
getset

Definition at line 10 of file Date.cs.


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