You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/bevy_mod_scripting_core/src/lib.rs
+104-7Lines changed: 104 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -24,14 +24,15 @@ use handler::{CallbackSettings, HandlerFn};
24
24
use runtime::{initialize_runtime,Runtime,RuntimeContainer,RuntimeInitializer,RuntimeSettings};
25
25
use script::{ScriptId,Scripts,StaticScripts};
26
26
27
+
mod extractors;
28
+
27
29
pubmod asset;
28
30
pubmod bindings;
29
31
pubmod commands;
30
32
pubmod context;
31
33
pubmod docgen;
32
34
pubmod error;
33
35
pubmod event;
34
-
pubmod extractors;
35
36
pubmod handler;
36
37
pubmod reflection_extensions;
37
38
pubmod runtime;
@@ -56,6 +57,10 @@ pub enum ScriptingSystemSet {
56
57
57
58
/// Types which act like scripting plugins, by selecting a context and runtime
58
59
/// Each individual combination of context and runtime has specific infrastructure built for it and does not interact with other scripting plugins
60
+
///
61
+
/// When implementing a new scripting plugin, also ensure the following implementations exist:
62
+
/// - [`Plugin`] for the plugin, both [`Plugin::build`] and [`Plugin::finish`] methods need to be dispatched to the underlying [`ScriptingPlugin`] struct
63
+
/// - [`AsMut<ScriptingPlugin<Self>`] for the plugin struct
0 commit comments