/// <summary> /// This function creates EngineController /// </summary> /// <param name="libraryServices"> LibraryServices manages builtin libraries and imported libraries.</param> /// <param name="geometryFactoryFileName">Path to LibG</param> /// <param name="verboseLogging">Bool value, if set to true, enables verbose logging</param> public EngineController(LibraryServices libraryServices, string geometryFactoryFileName, bool verboseLogging) { this.libraryServices = libraryServices; libraryServices.LibraryLoaded += LibraryLoaded; CompilationServices = new CompilationServices(libraryServices); liveRunnerServices = new LiveRunnerServices(this, geometryFactoryFileName); OnLibraryLoaded(); astBuilder = new AstBuilder(this); syncDataManager = new SyncDataManager(); VerboseLogging = verboseLogging; }
public EngineController(LibraryServices libraryServices, string geometryFactoryFileName, bool verboseLogging) { this.libraryServices = libraryServices; libraryServices.LibraryLoaded += LibraryLoaded; CompilationServices = new CompilationServices(libraryServices.LibraryManagementCore); liveRunnerServices = new LiveRunnerServices(this, geometryFactoryFileName); liveRunnerServices.ReloadAllLibraries(libraryServices.ImportedLibraries); libraryServices.SetLiveCore(LiveRunnerCore); codeCompletionServices = new CodeCompletionServices(LiveRunnerCore); astBuilder = new AstBuilder(this); syncDataManager = new SyncDataManager(); VerboseLogging = verboseLogging; }
/// <summary> /// Creates CompilationServices. /// </summary> /// <param name="core">Copilation core</param> public CompilationServices(LibraryServices libraryServices) { compilationCore = libraryServices.LibraryManagementCore; priorNames = libraryServices.GetPriorNames(); }
/// <summary> /// Import Library /// </summary> /// <param name="library"></param> internal void ImportLibrary(string library) { LibraryServices.ImportLibrary(library); }
/// <summary> /// Import library. /// </summary> /// <param name="library"></param> public void ImportLibrary(string library) { LibraryServices.ImportLibrary(library); }