1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use crate::prelude::*;
use std::fmt::Debug;
use std::time::Duration;
mod world_interactor_impl;
pub use self::world_interactor_impl::*;
mod interactable;
pub use self::interactable::*;
#[cfg(any(test, feature = "use-mocks"))]
use mockiato::mockable;
#[cfg_attr(any(test, feature = "use-mocks"), mockable)]
pub trait WorldInteractor: Debug {
fn find_objects_in_area(&self, area: Aabb) -> Snapshot<'_>;
fn elapsed_time_in_update(&self) -> Duration;
}