Attribute Macro main

Source
#[main]
Expand description

Helper to wrap your main loop entrypoint in code that will automatically configure the ScreepsRuntime and invoke it at the end of each tick.

The wrapped function may be async in which case the body will be passed to [screeps_async::block_on] before calling [screeps_async::run]