2017-02-08 03:25:03 -06:00
|
|
|
pub mod lua;
|
|
|
|
pub mod discord;
|
2017-02-13 00:22:06 -06:00
|
|
|
pub mod stdin;
|
|
|
|
pub mod echo;
|
2017-02-16 02:00:38 -06:00
|
|
|
pub mod random;
|
2017-02-19 04:49:06 -06:00
|
|
|
pub mod pvn;
|
2017-02-08 03:25:03 -06:00
|
|
|
|
|
|
|
pub mod loader;
|
|
|
|
|
2017-02-13 00:22:06 -06:00
|
|
|
use Tenquestionmarks;
|
|
|
|
use event::Event;
|
2017-02-08 03:25:03 -06:00
|
|
|
|
2017-02-19 02:55:30 -06:00
|
|
|
use std::sync::Arc;
|
2017-02-13 00:22:06 -06:00
|
|
|
use std::sync::mpsc::{Sender, Receiver};
|
|
|
|
|
2017-02-16 01:05:33 -06:00
|
|
|
pub trait Module : Sync {
|
2017-02-13 00:22:06 -06:00
|
|
|
fn register (&self, tenquestionmarks: &Tenquestionmarks) {}
|
2017-02-19 02:55:30 -06:00
|
|
|
fn consume_events (&self, receiver: Receiver<Arc<Event>>) {}
|
|
|
|
fn produce_events<'a>(&'a self, sender: Sender<Arc<Event>>) {}
|
2017-02-08 03:25:03 -06:00
|
|
|
}
|