mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 20:19:48 +00:00
20 lines
483 B
C#
20 lines
483 B
C#
|
using Lua;
|
||
|
|
||
|
namespace AIStudio.Tools.PluginSystem;
|
||
|
|
||
|
/// <summary>
|
||
|
/// This Lua module loader does not load any modules.
|
||
|
/// </summary>
|
||
|
public sealed class NoModuleLoader : ILuaModuleLoader
|
||
|
{
|
||
|
#region Implementation of ILuaModuleLoader
|
||
|
|
||
|
public bool Exists(string moduleName) => false;
|
||
|
|
||
|
public ValueTask<LuaModule> LoadAsync(string moduleName, CancellationToken cancellationToken = default)
|
||
|
{
|
||
|
return ValueTask.FromResult(new LuaModule());
|
||
|
}
|
||
|
|
||
|
#endregion
|
||
|
}
|