@@ -67,7 +67,7 @@ An example can be seen below
67
67
68
68
fn main() -> std::io::Result<()> {
69
69
let mut app = App::new();
70
- app.add_plugin (ScriptingPlugin)
70
+ app.add_plugins (ScriptingPlugin)
71
71
.add_plugins(DefaultPlugins)
72
72
// pick and register only the hosts you want to use
73
73
// use any system set AFTER any systems which add/remove/modify script components
@@ -191,7 +191,7 @@ pub fn load_a_script(
191
191
) {
192
192
// this handle is kept by the script so it will not be unloaded
193
193
let path = " scripts/console_integration.lua" . to_string ();
194
- let handle = server . load :: <LuaFile , & str >(& path );
194
+ let handle = server . load :: <LuaFile >(& path );
195
195
196
196
197
197
commands . spawn (()). insert (ScriptCollection :: <LuaFile > {
@@ -252,7 +252,7 @@ Register the API providers like so:
252
252
253
253
``` rust, ignore
254
254
app.add_plugins(DefaultPlugins)
255
- .add_plugin (ScriptingPlugin)
255
+ .add_plugins (ScriptingPlugin)
256
256
.add_script_host::<LuaScriptHost<MyLuaArg>>(PostUpdate)
257
257
.add_script_host::<RhaiScriptHost<MyRhaiArg>>(PostUpdate)
258
258
.add_api_provider::<LuaScriptHost<MyLuaArg>>(Box::new(LuaAPIProvider))
@@ -275,7 +275,7 @@ fn main() -> std::io::Result<()> {
275
275
let mut app = App::new();
276
276
277
277
app.add_plugins(DefaultPlugins)
278
- .add_plugin (ScriptingPlugin)
278
+ .add_plugins (ScriptingPlugin)
279
279
.add_script_host::<LuaScriptHost<()>>(PostUpdate)
280
280
// Note: This is a noop in optimized builds unless the `doc_always` feature is enabled!
281
281
// this will pickup any API providers added *BEFOREHAND* like this one
0 commit comments