Play Strawberry Docs
Referencia

Esta página se muestra en inglés.

scheduler

Sync and async tasks counted in game ticks, and cancellation.

Declarations from the script contract strawberry:plugin, version 0.2.0, without source comments.

How to use it: guide.

WIT declarations

text
schedule-delayed-task: func(handler-id: u32, delay-ticks: u64) -> u32;
schedule-repeating-task: func(handler-id: u32, delay-ticks: u64, period-ticks: u64) -> u32;
schedule-delayed-async-task: func(handler-id: u32, delay-ticks: u64) -> u32;
schedule-repeating-async-task: func(handler-id: u32, delay-ticks: u64, period-ticks: u64) -> u32;
cancel-task: func(task-id: u32);

En esta página