C# Class GameClock, UnderworldExporter

Inheritance: MonoBehaviour
Mostrar archivo Open project: hankmorgan/UnderworldExporter Class Usage Examples

Public Properties

Property Type Description
clockRate float
clockTime float
day int
hour int
minute int

Public Methods

Method Description
AddNow ( int iDay, int iHour, int iMinute ) : int

Adds the now.

Advance ( ) : void

Move the clock forward 1 hour.

Convert ( int iDay, int iHour, int iMinute ) : int

Turns a day, hour and minute into a number.

ConvertNow ( ) : int

Turns the current day, hour and minute into a number.

DiffNow ( int iDay, int iHour, int iMinute ) : int

Compares the day,hour& minute passed with the current time

Private Methods

Method Description
ClockTick ( ) : void

Clock tick. Activates regeneration, hunger and fatigue methods.

Update ( ) : void

Method Details

AddNow() public static method

Adds the now.
public static AddNow ( int iDay, int iHour, int iMinute ) : int
iDay int I day.
iHour int I hour.
iMinute int I minute.
return int

Advance() public static method

Move the clock forward 1 hour.
public static Advance ( ) : void
return void

Convert() public static method

Turns a day, hour and minute into a number.
public static Convert ( int iDay, int iHour, int iMinute ) : int
iDay int I day.
iHour int I hour.
iMinute int I minute.
return int

ConvertNow() public static method

Turns the current day, hour and minute into a number.
public static ConvertNow ( ) : int
return int

DiffNow() public static method

Compares the day,hour& minute passed with the current time
public static DiffNow ( int iDay, int iHour, int iMinute ) : int
iDay int I day.
iHour int I hour.
iMinute int I minute.
return int

Property Details

clockRate public_oe property

The clock rate. How long is a minute relative to the clockTime
public float clockRate
return float

clockTime public_oe property

How long has passed since the last clock tick
public float clockTime
return float

day public_oe static_oe property

What game day we are at.
public static int day
return int

hour public_oe static_oe property

What game hour we are at
public static int hour
return int

minute public_oe static_oe property

What game minute we are at.
public static int minute
return int