pub fn with_runtime<F, R>(f: F) -> Rwhere
F: FnOnce(&ScreepsRuntime) -> R,
Expand description
Acquire a reference to the ScreepsRuntime.
ยงPanics
This function panics if the current runtime is not set
pub fn with_runtime<F, R>(f: F) -> Rwhere
F: FnOnce(&ScreepsRuntime) -> R,
Acquire a reference to the ScreepsRuntime.
This function panics if the current runtime is not set