mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 12:01:38 +00:00
Prototype plugin architecture, switch instance-based stuff to that
This commit is contained in:
parent
5bf1f11190
commit
21e9625c36
7 changed files with 99 additions and 88 deletions
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue