/// <inheritdoc/> public bool AssemblyUpdate(List <DebugAssembly> assembliesToUnregister, List <DebugAssembly> assembliesToRegister) { Log.Info("Reloading assemblies and updating scripts"); // Unload and load assemblies in assemblyContainer, serialization, etc... lock (loadedAssemblies) { var assemblyReloader = new LiveAssemblyReloader( game, assemblyContainer, assembliesToUnregister.Select(x => loadedAssemblies[x]).ToList(), assembliesToRegister.Select(x => loadedAssemblies[x]).ToList()); if (game != null) { lock (game.TickLock) { assemblyReloader.Reload(); } } else { assemblyReloader.Reload(); } } return(true); }
/// <inheritdoc/> public bool AssemblyUpdate(List<DebugAssembly> assembliesToUnregister, List<DebugAssembly> assembliesToRegister) { Log.Info("Reloading assemblies and updating scripts"); // Unload and load assemblies in assemblyContainer, serialization, etc... lock (loadedAssemblies) { var assemblyReloader = new LiveAssemblyReloader( game, assemblyContainer, assembliesToUnregister.Select(x => loadedAssemblies[x]).ToList(), assembliesToRegister.Select(x => loadedAssemblies[x]).ToList()); if (game != null) { lock (game.TickLock) { assemblyReloader.Reload(); } } else { assemblyReloader.Reload(); } } return true; }