hai_core 0.7.0

Core implementation of Hai game engine, and general 2D rendering library using WebGPU as well.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[cfg(all(not(feature = "web"), feature = "js_runtime"))]
use super::Command;

/// A Plugin means an extra function module that different from a [Node](super::Node).
pub trait Plugin: Send + Sync {
    /// plugin type identifier
    fn plugin_name(&self) -> &'static str;

    /// return Some(self) manually if you've implemented Command for the plugin
    #[cfg(all(not(feature = "web"), feature = "js_runtime"))]
    fn as_command(&mut self) -> Option<&mut dyn Command> {
        None
    }
}