Function sleep_wake_tick

Source
pub fn sleep_wake_tick(ctx: &EventCtx<'_>) -> Result<Vec<OverlordEvent>>
Expand description

Port of the sleep tick: if the entity already woke (sleep attr absent), remove the wake_up_delay entirely; otherwise decrement wake_up_delay by 1 and, when it reaches 1 or less, clear the sleep attr.