comparison 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
comparison
equal deleted inserted replaced
737:0977d479e37d 738:817c453b7223
37 } 37 }
38 38
39 /// Interpreter for enemy scripts. 39 /// Interpreter for enemy scripts.
40 #[derive(Default)] 40 #[derive(Default)]
41 pub struct EclRunner { 41 pub struct EclRunner {
42 enemy: Rc<RefCell<Enemy>>, 42 /// XXX
43 pub enemy: Rc<RefCell<Enemy>>,
44
43 ecl: Option<Ecl>, 45 ecl: Option<Ecl>,
44 /// XXX 46 /// XXX
45 pub running: bool, 47 pub running: bool,
46 frame: StackFrame, 48 frame: StackFrame,
47 // TODO: there are only 8 of these. 49 // TODO: there are only 8 of these.