No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

host.rs 424B

123456789101112131415161718
  1. // the host environment (e.g. Desktop, Browser) has to provide basic
  2. // functionality that the game can invoke
  3. //
  4. use error;
  5. pub trait Host {
  6. // debugging/development
  7. fn log(&self, message: &str);
  8. fn error(&self, err: &error::SokobanError, message: &str) {
  9. self.log(&format!("{:?}: {}", err, message));
  10. }
  11. // audio
  12. fn audio_play(&self, id: i32);
  13. fn audio_volume(&self, volume: f32);
  14. }