Archive incari-client (client, 26.3, clean)
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
# Incari's Toggle Sprint (features/togglesprint) for the Rust build (ADR 0068, 0069). Hooks by name where Horizon
|
||||
# has stamped the hook point (native-hooks.json), by function where it's still pending. Its
|
||||
# settings and HUD element are the client's (rust/mods/incari): the module menu shows them and the HUD editor places it.
|
||||
[mod]
|
||||
id = "incari_togglesprint"
|
||||
version = "0.1.0"
|
||||
priority = 100
|
||||
|
||||
[[module]]
|
||||
id = "runtime"
|
||||
file = "crates/horizon-client/src/game.rs"
|
||||
name = "incari_togglesprint"
|
||||
source = "runtime.rs"
|
||||
|
||||
[[injection]]
|
||||
id = "keys"
|
||||
# Horizon's movement_keys hook point is still a pending fragment
|
||||
# (tools/native-hook-fragments/incari_client_hooks.json), so this targets its function. Make it
|
||||
# `hook = "movement_keys"` and `hook_version = 1` once Horizon stamps it.
|
||||
target = "horizon_client::game::native_hooks::Game<'_>::native_movement_keys"
|
||||
kind = "HEAD"
|
||||
helper = "keys.rs"
|
||||
bindings = [
|
||||
{ name = "game", ty = "&crate::game::Game<'_>", value = "self" },
|
||||
{ name = "sprint", ty = "&mut bool", value = "&mut *sprint" },
|
||||
{ name = "sneak", ty = "&mut bool", value = "&mut *sneak" },
|
||||
]
|
||||
|
||||
[[injection]]
|
||||
id = "hud"
|
||||
hook = "hud"
|
||||
hook_version = 1
|
||||
kind = "HEAD"
|
||||
helper = "hud.rs"
|
||||
bindings = [
|
||||
{ name = "game", ty = "&mut crate::game::Game<'_>", value = "&mut *self" },
|
||||
{ name = "batch", ty = "&mut horizon_client::hud::HudBatch", value = "&mut *batch" },
|
||||
{ name = "corners", ty = "&mut horizon_client::extras_hud::Corners", value = "&mut *corners" },
|
||||
]
|
||||
|
||||
[[injection]]
|
||||
id = "tick"
|
||||
hook = "tick"
|
||||
hook_version = 1
|
||||
kind = "HEAD"
|
||||
helper = "tick.rs"
|
||||
bindings = [
|
||||
{ name = "game", ty = "&mut crate::game::Game<'_>", value = "&mut *self" },
|
||||
]
|
||||
Reference in New Issue
Block a user