C# 클래스 GameClock, UnderworldExporter

상속: MonoBehaviour
파일 보기 프로젝트 열기: hankmorgan/UnderworldExporter 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
clockRate float
clockTime float
day int
hour int
minute int

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
ClockTick ( ) : void

Clock tick. Activates regeneration, hunger and fatigue methods.

Update ( ) : void

메소드 상세

AddNow() 공개 정적인 메소드

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.
리턴 int

Advance() 공개 정적인 메소드

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

Convert() 공개 정적인 메소드

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.
리턴 int

ConvertNow() 공개 정적인 메소드

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

DiffNow() 공개 정적인 메소드

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.
리턴 int

프로퍼티 상세

clockRate 공개적으로 프로퍼티

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

clockTime 공개적으로 프로퍼티

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

day 공개적으로 정적으로 프로퍼티

What game day we are at.
public static int day
리턴 int

hour 공개적으로 정적으로 프로퍼티

What game hour we are at
public static int hour
리턴 int

minute 공개적으로 정적으로 프로퍼티

What game minute we are at.
public static int minute
리턴 int