Class ScriptLoaderOptions
- Namespace
- RisingV.Scripting.RuntimeHost
- Assembly
- RisingV.Scripting.dll
Options for loading scripts.
public record ScriptLoaderOptions : IEquatable<ScriptLoaderOptions>
- Inheritance
-
ScriptLoaderOptions
- Implements
- Inherited Members
- Extension Methods
Constructors
ScriptLoaderOptions(string, bool, HashSet<string>?)
Options for loading scripts.
public ScriptLoaderOptions(string Name, bool PrintDiagnostics = true, HashSet<string>? UsingImports = null)
Parameters
Name
stringThe name of the script, used for logging and identification.
PrintDiagnostics
boolWhether to print diagnostics information after loading the script.
UsingImports
HashSet<string>A set of additional namespaces to import in the script. If null, defaults to an empty set.
Properties
Name
The name of the script, used for logging and identification.
public string Name { get; init; }
Property Value
PrintDiagnostics
Whether to print diagnostics information after loading the script.
public bool PrintDiagnostics { get; init; }
Property Value
UsingImports
A set of additional namespaces to import in the script. If null, defaults to an empty set.
public HashSet<string>? UsingImports { get; init; }