mirror of
https://github.com/horizon-rust/horizon-site.git
synced 2026-12-03 19:12:41 +07:00
[PR #45] Docs: the typed mod API and current native-mod builds #46
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
horizon-rust/horizon-site#46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/horizon-rust/horizon-site/pull/45
Author: @levzzz5154
Created: 11/2/2026
Status: 🔄 Open
Base:
main← Head:docs/typed-mod-api📝 Commits (1)
b0be6a9Docs: the typed mod API, API versions and the current launcher's native builds📊 Changes
6 files changed (+172 additions, -17 deletions)
View changed files
📝
content/docs/apis.md(+1 -1)📝
content/docs/make-a-mod.md(+8 -4)📝
content/docs/mod-code.md(+150 -4)📝
content/docs/mod-manifest.md(+8 -3)📝
content/docs/mods.md(+4 -4)📝
content/docs/test-a-mod.md(+1 -1)📄 Description
The modding pages described the mod system as of about launcher 0.2.23 and hook API 2. This brings them up to date with the game's main branch, including the typed mod API (horizon-rust/horizon#6216, #6253).
mod-code
native-hooks.json(186 hook points, 109 helpers on main) and the two ways to write the code: mixin helpers or the typed API.hook/hook_version, horizon-mixins 0.6.0).[api], theHookstrait, events (#[non_exhaustive]),Flow, order, state (&self,Send + Sync),Hostand what it lacks yet, level hosts,RenderHooks, attachments,[dependencies],trait_methodinjections,dispatch_*tests.native.pydoesn't handle[api]. horizon-mixins rejects the table, andpackageleaves out the crate folder.make-a-mod, mods, test-a-mod
--instanceand thedevbuild profile.launcher@0.2.37tag hasnative_mods/api.rs.mod-manifest: rows for
hook/hook_version,[api],[dependencies],[[crate]]and[[post_build]]. Thehooksrow now gives the current API numbers.apis: the Mods row.
Checked: every in-site anchor on these six pages resolves with the site's own
markdown.jsslugger. Not checked:npm run build.Sources: the game repo's
docs/native-mods.md,crates/horizon-client/src/mod_api/generated*.rs,launcher/src/native_mods/api.rsandnative-hooks.jsonon main.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.