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
use crate::engine::d2::subsystem::ExternalSystem;
use super::Dynamic;
#[derive(Default, Clone, Copy, Debug)]
pub struct DummyExternal {
pub supported: bool,
}
impl DummyExternal {
pub fn new() -> Self {
Default::default()
}
}
impl ExternalSystem for DummyExternal {
fn is_supported(&self) -> bool {
false
}
fn call(&self, name: String, params: Option<Vec<Dynamic>>) -> Option<Dynamic> {
None
}
fn bind(&self, name: String, function: Dynamic) {}
}