magicblock-labs / bolt

High-performance, Composable framework for Fully On Chain Games and Autonomous Worlds
https://book.boltengine.gg
MIT License
31 stars 7 forks source link

[Bug] Re-ordering elements when definining a system will fail to compile #60

Open crypto-vincent opened 3 months ago

crypto-vincent commented 3 months ago

Describe the bug

When changing the order of elements between: #[system_input], #[arguments] and execute inside of a #[system] macro, it will fail to compile with a confusing error message.

To Reproduce

Simple way to reproduce is to put the arguments struct before the execute function for example.