Skip to content

CollapseLauncher/Hi3Helper.Plugin.Core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collapse Launcher Plugin Core Library

This is the main repository of the Hi3Helper.Plugin.Core library (aka Collapse Launcher Standard Core Plugin Library), broadly used as a base to develop Game Plugin Support system for Collapse, implementing standards of API contracts and core functionalities which are used by both the plugin and the launcher, including: Platform Invocation, COM Interop and Marshalling.

How to Contribute?

You can contribute to this library by providing a proposal of new API contracts, or by improving the existing API contract implementation. You can expect some changes in the near future as the existing APIs are still under development.

Keep in mind that the code included in this repository are mainly unsafe due to marshalling nature from Managed .NET code to Unmanaged code platform invocation.

Make sure that your code is as reflection-free as possible, as the code is entirely purposed to work with NativeAOT Compilation. Minimal reflection-based features (such as GetType) are still supported, but ensure that you set the IlcDisableReflection on your .csproj project file (or .pubxml publish profile) to false. If you need to perform JSON Serialization/Deserialization, please ensure that your code uses source-generated JsonSerializerContext or use Lightweight/No-Reflection (manually deserialize the JSON with some interface implementation (See below)) via JsonDocument, Utf8JsonReader and Utf8JsonWriter.

What's Included?

This Core Library includes various APIs to make the plugin development faster, without needing to implement the entire functions from scratch. Here's a list of what's included currently:

V1 (v0.1.3.0) Implementation Standard

This repository follows the V1 implementation standard (current library version: v0.1.3.0). The standard collects base API contracts, COM interop helpers, marshallers and small utility primitives that plugin authors and the launcher can rely on.

Warning

The API contracts and implementations are still under development, so expect some breaking changes in the future. This list is subject to change without prior notice.

Note

This list is not exhaustive. Some utility classes and helper functions are not listed here. Please explore the source code for more details.

Tip

If a new version of the API standard is released, you will need to make sure that your plugin is updated to the latest version to take advantage of the new features and improvements.

How to Start Developing Plugins

TODO: Make an entire Wiki and documentation for How-to-use and stuff.

Plugin Examples

To see the example of how the plugin implemented using this Core Library, check the link below:

About

A Plugin Core Library to Add Support for Other Games into Collapse Launcher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages