public void NotifyClassAdded(ModuleImage module, string symbol)
 {
     _externalScripts.Add(new UserAddedScript()
     {
         Type   = UserAddedScriptType.Class,
         Symbol = symbol,
         Image  = module
     });
 }
        public void NotifyModuleAdded(ModuleImage module, string symbol)
        {
            var script = new UserAddedScript()
            {
                Type   = UserAddedScriptType.Module,
                Symbol = symbol,
                Image  = module
            };

            _externalScripts.Add(script);
            SetGlobalProperty(script.Symbol, null);
        }
Exemple #3
0
        public UserAddedScript AddModule(string identifier, string filePath, ModuleImage image = null)
        {
            var item = new UserAddedScript
            {
                Type        = UserAddedScriptType.Module,
                Image       = image,
                Symbol      = identifier,
                FilePath    = filePath,
                LibraryName = LibraryName
            };

            Modules.Add(item);

            return(item);
        }
 public LoadedModule LoadModuleImage(ModuleImage moduleImage)
 {
     return(new LoadedModule(moduleImage));
 }
     get => new ScriptModuleHandle()
     {
         Module = Image
     };
     set => Image = value.Module;
 }