Archive incari-client (client, 26.3, clean)
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
# Incari's Freelook (features/freelook) 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 are the client's (rust/mods/incari): the module menu shows them.
|
||||
[mod]
|
||||
id = "incari_freelook"
|
||||
version = "0.1.0"
|
||||
priority = 100
|
||||
|
||||
[[module]]
|
||||
id = "runtime"
|
||||
file = "crates/horizon-client/src/game.rs"
|
||||
name = "incari_freelook"
|
||||
source = "runtime.rs"
|
||||
|
||||
[[injection]]
|
||||
id = "key"
|
||||
hook = "key"
|
||||
hook_version = 1
|
||||
kind = "HEAD"
|
||||
helper = "key.rs"
|
||||
bindings = [
|
||||
{ name = "game", ty = "&mut crate::game::Game<'_>", value = "&mut *self" },
|
||||
{ name = "key", ty = "&str", value = "key" },
|
||||
{ name = "pressed", ty = "bool", value = "pressed" },
|
||||
]
|
||||
|
||||
[[injection]]
|
||||
id = "tick"
|
||||
hook = "tick"
|
||||
hook_version = 1
|
||||
kind = "HEAD"
|
||||
helper = "tick.rs"
|
||||
bindings = [
|
||||
{ name = "game", ty = "&mut crate::game::Game<'_>", value = "&mut *self" },
|
||||
]
|
||||
|
||||
[[injection]]
|
||||
id = "turn"
|
||||
# Horizon's turn hook point is still a pending fragment
|
||||
# (tools/native-hook-fragments/incari_client_hooks.json), so this targets its function. Make it
|
||||
# `hook = "turn"` and `hook_version = 1` once Horizon stamps it.
|
||||
target = "horizon_client::game::native_hooks::Game<'_>::native_turn"
|
||||
kind = "HEAD"
|
||||
helper = "turn.rs"
|
||||
bindings = [
|
||||
{ name = "game", ty = "&mut crate::game::Game<'_>", value = "&mut *self" },
|
||||
{ name = "dx", ty = "f64", value = "dx" },
|
||||
{ name = "dy", ty = "f64", value = "dy" },
|
||||
{ name = "claimed", ty = "&mut bool", value = "&mut *claimed" },
|
||||
]
|
||||
|
||||
[[injection]]
|
||||
id = "camera"
|
||||
# Horizon's camera_rotation hook point is still a pending fragment
|
||||
# (tools/native-hook-fragments/incari_client_hooks.json), so this targets its function. Make it
|
||||
# `hook = "camera_rotation"` and `hook_version = 1` once Horizon stamps it.
|
||||
target = "horizon_client::game::native_hooks::Game<'_>::native_camera_rotation"
|
||||
kind = "HEAD"
|
||||
helper = "camera.rs"
|
||||
bindings = [
|
||||
{ name = "yaw", ty = "&mut f32", value = "&mut *yaw" },
|
||||
{ name = "pitch", ty = "&mut f32", value = "&mut *pitch" },
|
||||
]
|
||||
Reference in New Issue
Block a user