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); }
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); }
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; }