Example #1
0
    private static V8EngineCore CreateCore()
    {
        var pathResolver  = new ModulePathResolver("", new[] { ".js", ".json", ".dll" }, "index");
        var loaderFactory = new ModuleLoaderFactory();

        core = new V8EngineCore(pathResolver, loaderFactory, iDebuggingPort);
        return(core);
    }
Example #2
0
        public RShipCore CreateCore()
        {
            var modulesPath   = Path.Combine(PathHelpers.GetAssemblyDirectory(), "ship_modules");
            var pathResolver  = new ModulePathResolver(modulesPath, new[] { ".ship", ".js", ".json", ".dll" }, "index");
            var loaderFactory = new ModuleLoaderFactory();
            var core          = new RShipCore(pathResolver, loaderFactory);

            return(core);
        }
Example #3
0
 private RShipCore CreateCore(IScriptEngine engine)
 {
     var modulesPath = Path.Combine(PathHelpers.GetAssemblyDirectory(), "ship_modules");
     var pathResolver = new ModulePathResolver(modulesPath, new[] { ".ship", ".js", ".json", ".dll" }, "lib");
     var loaderFactory = new ModuleLoaderFactory();
     var core = new RShipCore(engine, pathResolver, loaderFactory);
     return core;
 }