1pub trait WorldContext { 2 fn log(&self, msg: &str); 3} 4 5pub trait Script { 6 fn init(&mut self, ctx: &dyn WorldContext); 7}