Skip to content
3cxc edited this page Sep 13, 2026 · 4 revisions

NativePluginKit

License

Official NativeAOT-compatible client-side plugin system for the Unknown: Site-0 game.

中文文档: 首页


Overview

NativePluginKit provides a lightweight plugin infrastructure that lets third-party developers extend the game client at runtime. Plugins are compiled as native shared libraries (.dll on Windows, .so on Linux, .dylib on macOS) using .NET NativeAOT, and are dynamically loaded by the host via LoadLibrary / dlopen.

The kit consists of three layers:

  • Host — the game client builds a HostApiTable and passes it to plugins through PluginLoader.
  • Contract — NativePluginKit defines HostApiTable, HostApiBridgeBuilder, the Plugin base class, event structures, and generated Features.* API classes.
  • Plugin — third-party libraries inherit from Plugin, implement lifecycle methods, and call host APIs through strongly-typed feature modules.

Contents

Page Description
Installation Add NativePluginKit to a project
Plugin Development Tutorial Write your first plugin
API Reference Full API documentation

License

See LICENSE.

Clone this wiki locally