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 fundamental to develop Game Plugin Support system on Collapse Launcher, implements standard of API contracts and core functionality which is used by both the plugin and the launcher, including: Platform Invocation, COM Interop and Marshalling.

How to Contribute?

As per current state of the Plugin System on Collapse Launcher, you can contribute to this library by providing a proposal of the new API contract or by improving the existing API contract implementation. You might 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 reflection-free as possible as the code are entirely purposed to work with NativeAOT Compilation. A minimal reflection features (GetType and such) 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 few core implementation to support the plugin development faster without need to implement the entire functions from scratch. These are including:

V1 (v0.1.0.0) Implementation Standard

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 2

  •  
  •  

Languages