The typed API from mixin code
An [[inject]] listener can use the typed API: an API point's listener gets the side's Host and calls attachments and handles through it. The listener contracts are in Injections. Source-level helpers use the separate Mixins mechanism and upstream's vocabulary.
From the modding book of arismoko/horizonbfbda6a
A catalog hook's trait method, event and return make up its hook_version contract (Named hook points). These per-hook contract versions are catalog metadata, not minimum game versions. Catalog hooks, Host calls and internals [[inject]] declarations all build against the game's exact source revision. Rebuild the mod when that contract changes.
Every impl Hooks must have #[mod_api::horizon_mod]. The attribute derives subscriptions from the methods implemented in that block, so dispatch knows them at installation.
Edit this page on GitHub · Spotted something wrong? Open an issue .