Logo
Explore Help
Register Sign In
elsanctum/tenquestionmarks
2
0
Fork 0
You've already forked tenquestionmarks
Code Issues 8 Pull Requests Releases Wiki Activity
tenquestionmarks/src/modules/lua.rs

15 lines
196 B
Rust
Raw Normal View History

rename plugin -> module
2017-02-16 01:05:33 -06:00
use modules::Module;
use toml::Table;
pub struct LuaModule {
}
impl LuaModule {
Simplify module trait by combining produce/consume event methods into a single run method that runs in the module's own thread and can produce and/or consume events. Introduce an Envelope struct that encapsulates event + to/from so we can (eventually) tag every event and also limit where events are sent (e.g. you can have a specific module configured to talk or listen only to a certain other module).
2017-02-25 20:17:46 -06:00
pub fn new (_: &Table) -> Box<Module> {
rename plugin -> module
2017-02-16 01:05:33 -06:00
Box::new(LuaModule {})
}
}
impl Module for LuaModule {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 127ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API