Skip to main content

Crate flatland_client_lib

Crate flatland_client_lib 

Source
Expand description

Shared gameplay session state for TUI, bots, and third-party clients.

Re-exports§

pub use navigation::AutoNavigator;
pub use harvest_debug::verbose as harvest_debug_verbose;
pub use harvest_debug::TARGET as HARVEST_LOG_TARGET;

Modules§

harvest_debug
Harvest / play-loop diagnostics.
navigation
Client-side pathfinding and auto-navigation toward a map target.

Macros§

harvest_trace
Log at info when verbose(), else debug — always uses TARGET.

Structs§

BotClient
BotConfig
BotStats
ClientKeyBindings
ClientSettings
ConnectOptions
ContextLine
HUD line for the location / nearby panel.
GameClient
GameState
InventoryRow
One row in the inventory browser tree.
MoveOption
A destination the currently-picked item could be moved to.
MovePicker
Active “move to…” destination picker state for the selected inventory item.
NearbyContainer
A placed chest within CONTAINER_RANGE_M, with its contents pre-flattened for the browser (empty when locked without the matching key).
RemoteSession
RotationEditorState
Local rotation editor UI state (not persisted).

Enums§

AuthCredential
How the client authenticates to the game gateway. Uses default serde enum encoding (postcard-compatible; not internally tagged).
InventorySection
Broad section of the inventory browser a row belongs to (drives the grouped “Worn” / “On you” / “Nearby chest” headers in the UI).
MoveOptionKind
RotationEditorMode
Rotation editor overlay mode (plans/26 §C2.5).
SessionEvent

Constants§

CONTAINER_RANGE_M
Max distance (m) a placed chest can be browsed/moved-into from the inventory UI. Mirrors flatland_sim::interaction::CONTAINER_INTERACTION_RADIUS_M so the client only ever shows chests the server will actually let you use — this is what makes a chest disappear from the menu as soon as you walk away.

Traits§

PlayConnection
Gameplay session handle (remote TCP or in-process worker).

Functions§

body_slot_label
Short display label for a body slot (plans/08 §4.1) — shared by the inventory browser section headers and the move-destination picker.
connect
connect_tcp
default_server_addr
load_client_settings