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    default_api_base_url, default_game_server_addr, ClientConfig, FloatingChatPrefs, GfxWindowPrefs,
34    DEFAULT_API_PORT, DEFAULT_GAME_PORT,
35};
36pub use connect::{connect, connect_tcp, default_server_addr, ConnectOptions};
37pub use flatland_protocol::AuthCredential;
38pub use game::{
39    body_slot_label, equip_paperdoll_rows, format_binding_mode, format_binding_ttl,
40    format_status_bindings_suffix, inventory_category_group, list_label_matches, page_list_index,
41    worker_error_is_transient, worker_error_is_hud_noise, worker_attention_line, BankUiMode, CharacterSheetTab, ContextLine, DEFAULT_TICK_HZ, EquipPaperdollRow,
42    GameClient, GameState, GrantTargetOption, GrantTargetPicker, InventoryBrowserLine, InventoryRow,
43    InventoryRowView, InventorySection, InventoryTab, LedgerPeriod, LIST_PAGE_SIZE, LoadoutHotbarChoice, MoveOption,
44    MoveOptionKind, MovePicker, NearbyContainer, RotationEditorMode, RotationEditorState, ShopTab,
45    StoragePickOption, StorageUiMode, WorkerGiveOption, WorkerGivePicker, WorkerGiveTargetOption,
46    WorkerGiveTargetPicker, WorkerTakePicker, WorkerTeachOption, WorkerTeachPicker, CONTAINER_RANGE_M,
47    WORKER_GIVE_RANGE_M,
48};
49pub use worker_route_editor::{
50    node_candidates, owned_container_candidates, owned_container_candidates_with_occupants,
51    owned_lodging_container_ids, owned_lodging_container_ids_with_occupants,
52    owned_storage_template_ids, pick_lodging_container_at, pick_resource_node_at,
53    pick_storage_container_at, pick_trade_npc_at, route_item_template_candidates,
54    summarize_contents, trade_npc_candidates, worker_craft_blueprint_ids, ContainerCandidate,
55    NodeCandidate, RouteEditorClick, RouteEditorSheet, TradeNpcCandidate, WithdrawLineDraft,
56    WithdrawLineMode, WorkerRouteEditorState, WorkerRouteStop, WorkerRouteWaypoint,
57    WorkerRouteWithdrawItem, ADD_MENU, WAYPOINT_MENU,
58};
59pub use harvest_debug::{verbose as harvest_debug_verbose, TARGET as HARVEST_LOG_TARGET};
60pub use navigation::AutoNavigator;
61pub use remote::RemoteSession;
62pub use session::{PlayConnection, SessionEvent};
63pub use settings::{load_client_settings, ClientKeyBindings, ClientSettings};
64pub use social::{
65    contacts_from_stacks, self_chat_rgb, speaker_chat_rgb, AudioCue, ChatLogEntry, ChatThreadKind,
66    PendingTradeRequest, PlayerVerbState, SocialChatState, SpeakingBubble, TradeUiState,
67    WhisperContact, WhisperPouchUi,
68};
69pub use use_world::{UseWorldCandidate, UseWorldKind, UseWorldProbe, USE_WORLD_NEARBY_SCAN_M};