Function: isInTimeInterval()
ts
function isInTimeInterval(fromHours: number, toHours: number): boolean;Check whether current time interval is between desired values.
Parameters
| Parameter | Type | Description |
|---|---|---|
fromHours | number | Lower time bound. |
toHours | number | Upper time bound. |
Returns
boolean
Whether current game time is in provided time bounds.