SLCommandScript.Core 1.0.1

dotnet add package SLCommandScript.Core --version 1.0.1                
NuGet\Install-Package SLCommandScript.Core -Version 1.0.1                
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.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SLCommandScript.Core --version 1.0.1                
#r "nuget: SLCommandScript.Core, 1.0.1"                
#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.1

// Install SLCommandScript.Core as a Cake Tool
#tool nuget:?package=SLCommandScript.Core&version=1.0.1                

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 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 121 10/18/2024
1.0.0 86 10/17/2024