mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-21 21:25:16 +00:00
Prototype plugin architecture, switch instance-based stuff to that
This commit is contained in:
11
src/plugin.rs
Normal file
11
src/plugin.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
use rbx::RbxItem;
|
||||
use vfs::VfsItem;
|
||||
|
||||
pub enum PluginResult {
|
||||
Value(Option<RbxItem>),
|
||||
Pass,
|
||||
}
|
||||
|
||||
pub trait Plugin {
|
||||
fn transform(item: &VfsItem) -> PluginResult;
|
||||
}
|
||||
Reference in New Issue
Block a user