public void NotifyModuleAdded(ScriptModuleHandle module, string symbol)
        {
            var script = new UserAddedScript()
            {
                Type   = UserAddedScriptType.Module,
                Symbol = symbol,
                Module = module
            };

            _externalScripts.Add(script);
            SetGlobalProperty(script.Symbol, null);
        }
Beispiel #2
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);
        }