-
Notifications
You must be signed in to change notification settings - Fork 0
API Host HotPatchType
Liu.Yandong.Hanks edited this page Aug 21, 2026
·
3 revisions
Flags controlling dynamic patch behavior.
Namespace: AuroraScript.Core. Kind: enum.
Back to .NET Host API Reference
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.
domain.DynamicPatch(
"scripts/main.as",
"@module(MAIN); export func run() { return 42; }",
HotPatchType.Replace);| 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. |
Replaces all members of the target module with patch content.
var value = HotPatchType.Replace;Adds new members and updates existing members with matching names.
var value = HotPatchType.Incremental;Ignores dependency updates when imported modules are already loaded.
var value = HotPatchType.IgnoreDepends;AuroraScript.JIT 4.0.0 · Documentation Home · Repository · MIT License