Specs Path

When creating an entity in Alacrity, the library searches for the entity definition in a set of specs tables that are embedded into your binary or library during compilation. To achieve this, you must provide the absolute path to where your specs definitions are located in the file system as the value of the ALACRITY_SPECS_PATH environment variable before compiling the sources.

🚨 It is important to note that you should only use absolute paths, as using relative paths may result in the specs not being added to the binary. This is because the Rust compiler cannot guarantee that the relative path would be accessible during the compilation phase. For more information, refer to the once_cell crate documentation..

Alacrity will lookup new entities or buffs that you try to instantiate automatically on them.