lyra-engine/crates/lyra-scripting/src/wrap.rs

15 lines
306 B
Rust
Raw Normal View History

2024-01-05 01:52:47 +00:00
use lyra_ecs::DynamicBundle;
#[derive(Clone)]
pub struct ScriptDynamicBundle(pub DynamicBundle);
impl std::ops::Deref for ScriptDynamicBundle {
type Target = DynamicBundle;
fn deref(&self) -> &Self::Target {
&self.0
}
}
// SAFETY: todo!()
unsafe impl Send for ScriptDynamicBundle {}