updated imports.
This commit is contained in:
parent
447f8c3169
commit
8ac3a51aa7
|
|
@ -2,9 +2,9 @@ use futures::lock::Mutex;
|
|||
use std::thread::sleep;
|
||||
use std::time::Duration;
|
||||
|
||||
use serverlib::plugin::{plugin::Plugin, plugin_details::PluginDetails};
|
||||
use serverlib::plugin::{Plugin, PluginDetails};
|
||||
// use tokio::{sync::Mutex, time::sleep};
|
||||
use serverlib::plugin::plugin::IPlugin;
|
||||
use serverlib::plugin::IPlugin;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ExamplePlugin {
|
||||
|
|
@ -40,7 +40,6 @@ impl IPlugin for ExamplePlugin {
|
|||
let mut a = self.number.lock().await;
|
||||
*a = a.overflowing_add(1).0;
|
||||
println!("[ExamplePlugin]: example run {}", *a);
|
||||
|
||||
}
|
||||
|
||||
fn deinit(&self) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
mod example;
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use serverlib::plugin::Plugin;
|
||||
|
||||
use crate::example::ExamplePlugin;
|
||||
use serverlib::plugin::plugin::Plugin;
|
||||
use std::sync::Arc;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
// pub mod chat_manager;
|
||||
pub mod client;
|
||||
pub mod client_manager;
|
||||
mod event;
|
||||
mod lua;
|
||||
pub mod messages;
|
||||
pub mod network_manager;
|
||||
mod plugin;
|
||||
mod plugin_manager;
|
||||
pub mod server;
|
||||
|
||||
use std::io;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
mod plugin;
|
||||
mod plugin_entry;
|
||||
mod plugin_details;
|
||||
mod plugin_entry;
|
||||
mod plugin_interface;
|
||||
mod plugin_manager;
|
||||
mod plugin_permissions;
|
||||
|
||||
pub(crate) use plugin_manager::{PluginManager, PluginManagerMessage};
|
||||
pub use plugin::{IPlugin, Plugin};
|
||||
pub use plugin_details::PluginDetails;
|
||||
pub(crate) use plugin_manager::{PluginManager, PluginManagerMessage};
|
||||
|
|
|
|||
Loading…
Reference in New Issue