SLCommandScript.Core
1.0.2
dotnet add package SLCommandScript.Core --version 1.0.2
NuGet\Install-Package SLCommandScript.Core -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SLCommandScript.Core" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SLCommandScript.Core --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SLCommandScript.Core, 1.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SLCommandScript.Core as a Cake Addin #addin nuget:?package=SLCommandScript.Core&version=1.0.2 // Install SLCommandScript.Core as a Cake Tool #tool nuget:?package=SLCommandScript.Core&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SLCommandScript.Core
Provides core components, interfaces and utilities for Secret Lab Command Script language.
Manually adding references to SCP: Secret Laboratory assemblies in your project might be necessary when using certain classes.
Full documentation for developers can be found in project wiki.
Basic usage examples for common use cases
Creating custom permissions resolver
public class MyCustomPermissionsResolver : SLCommandScript.Core.Permissions.IPermissionsResolver
{
public bool CheckPermission(ICommandSender sender, string permission, out string message)
{
// Execute your logic here
}
}
Creating custom scripts loader
public class MyCustomScriptLoader : SLCommandScript.Core.IScriptsLoader
{
public string LoaderName { get; } = "MyCustomLoaderName";
public string LoaderVersion { get; } = "1.0.0";
public string LoaderAuthor { get; } = "ProjectAuthors";
public void InitScriptsLoader(object plugin, PluginHandler handler, ScriptsLoaderConfig loaderConfig)
{
// Initialize loader here
}
public void Dispose()
{
// Cleanup resources here
}
}
Adding custom iterable objects
SLCommandScript.Core.Iterables.IIterable MyCustomIterableProvider()
{
// Execute your logic here
}
SLCommandScript.Core.Iterables.IterablesUtils.Providers["MyIterableName"] = MyCustomIterableProvider;
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- Northwood.PluginAPI (>= 13.1.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.