Skip to content

API Host HotPatchType

Liu.Yandong.Hanks edited this page Aug 21, 2026 · 3 revisions

HotPatchType

Flags controlling dynamic patch behavior.

Namespace: AuroraScript.Core. Kind: enum.

Back to .NET Host API Reference

Overview

HotPatchType selects how a patch is applied by ScriptDomain.DynamicPatch and ScriptDomain.DynamicPatchAsync. The values are flags, so IgnoreDepends can be combined with a replace or incremental patch.

Quick Reference

domain.DynamicPatch(
    "scripts/main.as",
    "@module(MAIN); export func run() { return 42; }",
    HotPatchType.Replace);

Values

Value Description
Replace Replaces all members of the target module with patch content.
Incremental Adds new members and updates existing members with matching names.
IgnoreDepends Ignores dependency updates when imported modules are already loaded.

HotPatchType.Replace

Replaces all members of the target module with patch content.

var value = HotPatchType.Replace;

HotPatchType.Incremental

Adds new members and updates existing members with matching names.

var value = HotPatchType.Incremental;

HotPatchType.IgnoreDepends

Ignores dependency updates when imported modules are already loaded.

var value = HotPatchType.IgnoreDepends;

Clone this wiki locally