diff src/th06/ecl_vm.rs @ 738:817c453b7223

stagerunner: Add a binary able to run multiple enemies.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 28 Dec 2019 23:53:09 +0100
parents 0977d479e37d
children 01915da33b99
line wrap: on
line diff
--- a/src/th06/ecl_vm.rs
+++ b/src/th06/ecl_vm.rs
@@ -39,7 +39,9 @@ struct StackFrame {
 /// Interpreter for enemy scripts.
 #[derive(Default)]
 pub struct EclRunner {
-    enemy: Rc<RefCell<Enemy>>,
+    /// XXX
+    pub enemy: Rc<RefCell<Enemy>>,
+
     ecl: Option<Ecl>,
     /// XXX
     pub running: bool,