API Source
Functions
lifecycle!methods!Enums
// not documented yet for this moduleConstants
res/**/*.rs synced into .perro/scriptsTypes
ScriptContextVariantDocs
Utility modules are normal Rust modules used by behavior scripts for shared code, types, helpers, traits, and gameplay logic.
Script Utility Modules explains behavior, constraints, and practical usage so implementation decisions stay consistent across scripts and scenes.
Functions
lifecycle!methods!Enums
// not documented yet for this moduleConstants
res/**/*.rs synced into .perro/scriptsTypes
ScriptContextVariantuse crate::combat::damage::DamageEvent; lifecycle!({ fn on_update(&self, ctx) { let event = DamageEvent { amount: 10 }; }});Keep non-entrypoint code in reusable modules.
Import helpers from synced script files with normal Rust paths.
Use deps.toml for external crates.
Behavior entry macros stay in scripts referenced by scenes.