Mercurial > touhou
changeset 692:a35df65e0d57
ecl_vm: stub PlaySound.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 17 Aug 2019 14:09:39 +0200 |
parents | f5d85a646975 |
children | 14fddc27e6f5 |
files | src/th06/ecl_vm.rs src/th06/enemy.rs |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/th06/ecl_vm.rs +++ b/src/th06/ecl_vm.rs @@ -862,12 +862,10 @@ impl EclRunner { } // 106 - /* SubInstruction::PlaySound(index) => { let mut enemy = self.enemy.borrow_mut(); enemy.play_sound(index); } - */ // 107 SubInstruction::SetDeathFlags(death_flags) => {
--- a/src/th06/enemy.rs +++ b/src/th06/enemy.rs @@ -359,6 +359,11 @@ impl Enemy { } } + /// Stubbed for now. + pub(crate) fn play_sound(&self, sound_index: i32) { + println!("Playing sound {}!", sound_index); + } + /// Run all interpolators and such, and update internal variables once per /// frame. pub fn update(&mut self) {