54 lines
2.1 KiB
C#
54 lines
2.1 KiB
C#
using System.Collections.Immutable;
|
|
|
|
namespace RobotNet10.FleetManager.Script.Shared;
|
|
|
|
/// <summary>
|
|
/// Provides configuration resources for the FleetManager ScriptEngine.
|
|
/// Defines the global type, namespaces, modules, and documentation modules available to scripts.
|
|
/// </summary>
|
|
public class FleetManagerScriptEngineResource
|
|
{
|
|
/// <summary>
|
|
/// Gets the global type that will be exposed to scripts as the entry point for FleetManager APIs.
|
|
/// </summary>
|
|
public static readonly Type GlobalType = typeof(IFleetManagerScriptGlobals);
|
|
|
|
/// <summary>
|
|
/// Gets the collection of namespaces that are automatically imported in scripts.
|
|
/// These namespaces are available without explicit using statements.
|
|
/// </summary>
|
|
public static readonly ImmutableArray<string> UsingNamespaces = [
|
|
"System",
|
|
"System.Collections.Generic",
|
|
"System.Threading",
|
|
"System.Threading.Tasks",
|
|
"System.Runtime.CompilerServices",
|
|
"RobotNet10.FleetManager.Script",
|
|
"RobotNet10.Script",
|
|
];
|
|
|
|
/// <summary>
|
|
/// Gets the collection of assembly modules that are loaded and available to scripts.
|
|
/// These modules provide the runtime types and functionality accessible from scripts.
|
|
/// </summary>
|
|
public static readonly ImmutableArray<string> Modules = [
|
|
"System.Runtime",
|
|
"System.Collections",
|
|
"System.Private.CoreLib",
|
|
"RobotNet10.FleetManager.Script",
|
|
"RobotNet10.Script",
|
|
];
|
|
|
|
/// <summary>
|
|
/// Gets the collection of XML documentation module files used for IntelliSense and code completion in scripts.
|
|
/// These documentation files provide type information and method descriptions to script editors.
|
|
/// </summary>
|
|
public static readonly ImmutableArray<string> DocModules = [
|
|
"System.Runtime.xml",
|
|
"System.Collections.xml",
|
|
//"System.Private.CoreLib.xml",
|
|
"RobotNet10.FleetManager.Script.xml",
|
|
"RobotNet10.Script.xml",
|
|
];
|
|
}
|