Skip to content

Understand the SDK, runtime and Host ​

A NexaCL plugin is a package executed under an admitted identity. It contributes behavior through negotiated capabilities instead of receiving the launcher's CLR objects. This separation lets the Host keep ownership of account data, game instances, UI confirmation and filesystem grants.

Follow one button click ​

The plugin registers an NXML page and a typed action during initialization. After activation the Host renders the page. A button expresses the registered action ID; PluginSidecar validates the target and asks the Host to present confirmation when required. PluginSidecar then dispatches the callback under the admitted load identity. The plugin returns a typed result, and the Host records or presents that result.

The action does not run in the renderer, and its NXML does not contain a second privileged code path. The same authority checks apply whether the call originated from UI, another supported consumer or a workflow.

Who owns what ​

ComponentResponsibilityWhat a plugin receives
Bootstrap V1Negotiation, lifecycle and generic values/errorsAn admitted context and callback scope
ABI 100 SDKTyped models, codecs, capability wrappers and C headersA way to construct and decode calls
PluginSidecarPlugin permissions, lifecycle, SDK dispatch, installation, offline recovery and plugin UIBounded execution with explicit continuations
NexaCL HostGeneric native services, Sidecar grants, rendering and platform policyResults mediated by PluginSidecar
Market integrationAccount authorization and encrypted acquisition; PluginSidecar verifies signatures and entitlementsOnly an admitted plugin load

An SDK wrapper is not a service implementation. The catalog can describe an operation before a Host maps it. A successful negotiation also does not waive per-call permission, phase, ownership and revision checks.

Separate the version axes ​

0.2.0-beta.1 is the authoring package version, 1 is Bootstrap V1, and 100 is the stable ABI selected for this SDK. Capability minimum versions in the manifest are another contract field; do not replace every 1 with 100.

The independent SDK preserves the Bootstrap signatures and all 346 original operations, model fields and fingerprints extracted from PluginSidecar alpha.9. The 22 retained Nexa preview dispatch slots are a separate compatibility catalog. Neither makes historical PCL.N.Plugin.* injection plugins compatible with this runtime.

Transport and generated code ​

contracts/abi100.json is build input for static C# and C bindings. JSON is not the plugin-to-Host transport. SDK-local method numbers are not new Sidecar opcodes; the existing binary Host ABI remains the communication boundary.

The executable production profile is import-free Wasm. Managed Bootstrap examples help test or embed the contract; ordinary DLLs are not an alternate production Desktop loading route. See Wasm execution for the actual guest ABI.

Maintain one contract source ​

Edit contracts and generators in this SDK repository, regenerate bindings, and validate compatibility before publishing an immutable bundle. Runtime consumers should pin that bundle instead of maintaining a divergent editable contract copy. The extraction of every runtime consumer is a separate integration task; the published SDK does not itself prove every consumer has migrated.

Start with loading, then use the support snapshot to choose the application capabilities your plugin can actually depend on.

Canonical guest maps and support metadata ​

Host binary maps are encoded in .NET ordinal (UTF-16 code-unit) order. The guest validates strictly increasing adjacent keys in one scan, rejecting duplicates and out-of-order maps without rescanning earlier values. Supplementary Unicode scalar ordering must match UTF-16, not UTF-8 byte order. Raw guest map writers must emit this canonical order too. Missing fields remain distinct from encoded Null.

The ABI catalog defines contracts independently of a particular Host. Its legacy HostBinding metadata member remains for source/binary compatibility but carries HostDefined; per-Host implementation status belongs only to host-support.json. Resources slot 1 is the retained legacy cleanup call; Events slot 3 is reserved. Correctly spelled negotiation is an extension over the retained historical method, so existing Bootstrap implementations do not gain a new required interface member.

Completing the original 346-operation catalog ​

Additive restore-destination, scoped-import and trash-preview operations make the original request shapes actionable without reinterpreting paths as authority. Provider callback method tables are part of the SDK reference and are exercised through their real host consumers. Existing models and numeric IDs are frozen; new capability methods do not replace or silently renumber the original catalog.

Independent native components ​

NexaCL starts and runs without PluginSidecar. It exposes generic native services for all admitted Sidecars and renders prepared NXML; it has no plugin SDK reference or plugin-specific business adapter. PluginSidecar translates guest ABI calls into those services and owns every guest registration, permission and callback scope. Market Sidecar owns account sign-in and authenticated acquisition. A Host-owned peer binding routes bounded opaque messages to the selected native session; it does not load a plugin or interpret an entitlement.

For a Market install, the backend authorizes the approved release and issues a signed, device-bound encrypted packet. PluginSidecar verifies it before showing native consent, then retains the original signed ciphertext only when the user chooses to remember authorization. Restart can restore that installation without Market, a bearer token or developer mode. Invalid signatures, another device, expired grants and unavailable OS key protection fail closed. Neither SDK Beta nor source integration means production Market signing is already configured.


Source: NexaCL-Plugin-SDK · Apache-2.0.

Site documentation: CC BY-SA 4.0. Imported SDK documents: Apache-2.0 as marked.