Time API

Get Minute

Get the current UniStorm Minute

int CurrentMinute = UniStorm.UniStormSystem.Instance.Minute;

Get Hour

Get the current UniStorm Hour

int CurrentHour = UniStorm.UniStormSystem.Instance.Hour;

SetDate

Sets UniStorm's Date

UniStorm.UniStormManager.Instance.SetDate(int Year, int Month, int Day);

SetTime

Sets UniStorm's Time

UniStorm.UniStormManager.Instance.SetTime (int Hour, int Minute);

CurrentTimeOfDayState

Get the current time of day state

UniStorm.UniStormSystem.CurrentTimeOfDayEnum CurrentTimeOfDayState = UniStorm.UniStormSystem.Instance.CurrentTimeOfDay;

SetDayLength

Sets the length, in minutes, of UniStorm's days

UniStorm.UniStormManager.Instance.SetDayLength(int MinuteLength);

SetNightLength

Sets the length, in minutes, of UniStorm's nights

UniStorm.UniStormManager.Instance.SetNightLength(int MinuteLength);

CurrentDayOfWeek

Gets the current UniStorm day of the week such as Monday, Tuesday, Wednesday, etc.

System.DayOfWeek CurrentDayOfWeek =  UniStorm.UniStormManager.Instance.GetDate().DayOfWeek;

CurrentDate

Gets the current UniStorm date

System.Date CurrentDate =  UniStorm.UniStormManager.Instance.GetDate().Date;

Last updated