Skip to main content

flatland_client_lib/
lib.rs

1//! Shared gameplay session state for TUI, bots, and third-party clients.
2
3mod assets;
4mod bot;
5mod character_sheet;
6mod client_config;
7mod connect;
8pub mod currency;
9mod game;
10mod worker_route_editor;
11pub mod harvest_debug;
12pub mod navigation;
13mod remote;
14mod session;
15mod settings;
16mod social;
17mod use_world;
18
19pub use assets::{
20    assets_index_url, build_bundle_index, build_client_bundle_index, firebase_download_url,
21    firebase_object_path, needs_asset_sync, read_local_state, read_repo_publish_rev,
22    resolve_bundle_file_path, resolve_paperdoll_dir, resolve_sprites_dir, should_prefer_repo_assets,
23    sync_assets, synced_rev_dir, AssetBundleIndex, AssetFileEntry, AssetSyncKind, AssetSyncOptions,
24    AssetSyncResult, ClientBundleSources, LocalAssetState, DEFAULT_FIREBASE_BUCKET,
25};
26pub use bot::{BotClient, BotConfig, BotStats};
27pub use character_sheet::{
28    build_character_sheet, format_pool_xp, format_progress_pct, format_xp_band,
29    format_xp_band_compact, format_xp_delta, format_xp_value, AttributeRow, CharacterSheet,
30    PoolRow, SheetSync, SkillRow,
31};
32pub use client_config::{
33    api_base_url_for_host, apply_host_override, default_api_base_url, default_game_server_addr,
34    host_override_active, normalize_host_input, resolve_game_host_addr, ClientConfig,
35    FloatingChatPrefs, GfxWindowPrefs, DEFAULT_API_PORT, DEFAULT_GAME_PORT,
36};
37pub use connect::{connect, connect_tcp, default_server_addr, ConnectOptions};
38pub use flatland_protocol::AuthCredential;
39pub use game::{
40    body_slot_label, equip_paperdoll_rows, format_binding_mode, format_binding_ttl,
41    format_status_bindings_suffix, inventory_category_group, list_label_matches, page_list_index,
42    worker_error_is_transient, worker_error_is_hud_noise, worker_attention_line, BankUiMode, CharacterSheetTab, ContextLine, DEFAULT_TICK_HZ, EquipPaperdollRow,
43    GameClient, GameState, GrantTargetOption, GrantTargetPicker, InventoryBrowserLine, InventoryRow,
44    InventoryRowView, InventorySection, InventoryTab, LedgerPeriod, LIST_PAGE_SIZE, LoadoutHotbarChoice, MoveOption,
45    MoveOptionKind, MovePicker, NearbyContainer, RotationEditorMode, RotationEditorState, ShopTab,
46    StoragePickOption, StorageUiMode, WorkerGiveOption, WorkerGivePicker, WorkerGiveTargetOption,
47    WorkerGiveTargetPicker, WorkerTakePicker, WorkerTeachOption, WorkerTeachPicker, CONTAINER_RANGE_M,
48    WORKER_GIVE_RANGE_M,
49};
50pub use worker_route_editor::{
51    node_candidates, owned_container_candidates, owned_container_candidates_with_occupants,
52    owned_lodging_container_ids, owned_lodging_container_ids_with_occupants,
53    owned_storage_template_ids, pick_lodging_container_at, pick_resource_node_at,
54    pick_storage_container_at, pick_trade_npc_at, route_item_template_candidates,
55    summarize_contents, trade_npc_candidates, worker_craft_blueprint_ids, ContainerCandidate,
56    NodeCandidate, RouteEditorClick, RouteEditorSheet, TradeNpcCandidate, WithdrawLineDraft,
57    WithdrawLineMode, WorkerRouteEditorState, WorkerRouteStop, WorkerRouteWaypoint,
58    WorkerRouteWithdrawItem, ADD_MENU, WAYPOINT_MENU,
59};
60pub use harvest_debug::{verbose as harvest_debug_verbose, TARGET as HARVEST_LOG_TARGET};
61pub use navigation::AutoNavigator;
62pub use remote::RemoteSession;
63pub use session::{PlayConnection, SessionEvent};
64pub use settings::{load_client_settings, ClientKeyBindings, ClientSettings};
65pub use social::{
66    contacts_from_stacks, self_chat_rgb, speaker_chat_rgb, AudioCue, ChatLogEntry, ChatThreadKind,
67    PendingTradeRequest, PlayerVerbState, SocialChatState, SpeakingBubble, TradeUiState,
68    WhisperContact, WhisperPouchUi,
69};
70pub use use_world::{UseWorldCandidate, UseWorldKind, UseWorldProbe, USE_WORLD_NEARBY_SCAN_M};