Timeboard Events
v4.0
Timeboard
Timeboard will handle all of the Gametime updates, and can be used for pausing the game as well. There are options to send events from the Blackboard on PauseLevel
changes, or when key date/times change.
Other scripts can implement IFollowBlackboard
and subscribe to the Blackboard, or simply inherit from TimeboardFollower
, which provides virtual methods that do all the subscriptions for you.
Bring the Timeboard prefab into your project to easily use the Gametime module.
When an event is received from the Timeboard.Blackboard
, the topic
will always be "Gametime". Subject
will describe what information has changed. The status
will be a string, and the obj is an object. You will need to cast the obj
value as an int: event.obj as int
Day will return 0
on the first day of the month in the obj
value.
Week will return a string "1"
on the first week of the year, and 0
in the obj
value.
Topic | Subject | Status (string) | Obj (Object) |
---|---|---|---|
Gametime | Pause Level | -- |
|
Gametime | Minute |
|
|
Gametime | Hour |
|
|
Gametime | Day |
|
|
Gametime | Week |
|
|
Gametime | Month |
|
|
Gametime | Season |
|
|
Gametime | Year |
|
|
Last updated