/// A trait for scripts pub trait ScriptTable: Send + Sync { /// This is called whenever the script is enabled fn begin(&mut self); /// This is called every frame fn update(&mut self); } pub type VTableScript = &'static mut dyn ScriptTable;