Rename plugin -> tile
This commit is contained in:
parent
e0bc330205
commit
842e668b42
1 changed files with 3 additions and 3 deletions
|
|
@ -4,16 +4,16 @@ mod shim;
|
|||
pub use keys::*;
|
||||
pub use shim::*;
|
||||
|
||||
pub trait MosaicPlugin {
|
||||
pub trait MosaicTile {
|
||||
fn init(&mut self);
|
||||
fn draw(&mut self, rows: usize, cols: usize);
|
||||
fn handle_key(&mut self, key: KeyEvent);
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! register_plugin {
|
||||
macro_rules! register_tile {
|
||||
($t:ty) => {
|
||||
use mosaic_plugin::*;
|
||||
use mosaic_tile::*;
|
||||
|
||||
use std::cell::RefCell;
|
||||
thread_local! {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue