Constructor
new ScheduleSlot(config)
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config | Object | Configuration object. Properties
|
- Source
Classes
Members
duration
Duration in hours of this slot.
- Source
wrapsMidnight
Whether this slot wraps around midnight (e.g. 22:00 to 06:00).
- Source
Methods
isActive(hour) → {boolean}
Checks if this slot is active at the given game hour.
Parameters:
| Name | Type | Description |
|---|---|---|
hour | number | | Hour to test. |
- Source
Returns:
- Type:
- boolean