First implementation of 'ScriptPlugin', which serves script files as scripts

This commit is contained in:
Lucien Greathouse
2017-12-13 23:58:53 -08:00
parent 01325c8c7e
commit 67ac6b7cec
4 changed files with 64 additions and 1 deletions

View File

@@ -4,6 +4,9 @@ use plugin::{Plugin, PluginChain, PluginResult};
use rbx::{RbxItem, RbxValue};
use vfs::VfsItem;
/// A plugin with simple transforms:
/// * Directories become Folder instances
/// * Files become StringValue objects with 'Value' as their contents
pub struct DefaultPlugin;
impl DefaultPlugin {