Rename plugin -> tile

This commit is contained in:
Brooks J Rady 2020-11-17 22:02:35 +00:00
parent e0bc330205
commit 842e668b42

View file

@ -4,16 +4,16 @@ mod shim;
pub use keys::*; pub use keys::*;
pub use shim::*; pub use shim::*;
pub trait MosaicPlugin { pub trait MosaicTile {
fn init(&mut self); fn init(&mut self);
fn draw(&mut self, rows: usize, cols: usize); fn draw(&mut self, rows: usize, cols: usize);
fn handle_key(&mut self, key: KeyEvent); fn handle_key(&mut self, key: KeyEvent);
} }
#[macro_export] #[macro_export]
macro_rules! register_plugin { macro_rules! register_tile {
($t:ty) => { ($t:ty) => {
use mosaic_plugin::*; use mosaic_tile::*;
use std::cell::RefCell; use std::cell::RefCell;
thread_local! { thread_local! {