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 use_world;
17
18pub use assets::{
19    assets_index_url, build_bundle_index, build_client_bundle_index, firebase_download_url,
20    firebase_object_path, needs_asset_sync, read_local_state, read_repo_publish_rev,
21    resolve_bundle_file_path, resolve_paperdoll_dir, resolve_sprites_dir, sync_assets,
22    AssetBundleIndex, AssetFileEntry, AssetSyncKind, AssetSyncOptions, AssetSyncResult,
23    LocalAssetState, DEFAULT_FIREBASE_BUCKET,
24};
25pub use bot::{BotClient, BotConfig, BotStats};
26pub use character_sheet::{
27    build_character_sheet, format_pool_xp, format_progress_pct, format_xp_band,
28    format_xp_band_compact, format_xp_delta, format_xp_value, AttributeRow, CharacterSheet,
29    PoolRow, SheetSync, SkillRow,
30};
31pub use client_config::{
32    default_api_base_url, default_game_server_addr, ClientConfig, GfxWindowPrefs,
33    DEFAULT_API_PORT, DEFAULT_GAME_PORT,
34};
35pub use connect::{connect, connect_tcp, default_server_addr, ConnectOptions};
36pub use flatland_protocol::AuthCredential;
37pub use game::{
38    body_slot_label, equip_paperdoll_rows, format_binding_mode, format_binding_ttl,
39    format_status_bindings_suffix, inventory_category_group, list_label_matches, page_list_index,
40    worker_error_is_transient, worker_error_is_hud_noise, worker_attention_line, BankUiMode, CharacterSheetTab, ContextLine, DEFAULT_TICK_HZ, EquipPaperdollRow,
41    GameClient, GameState, GrantTargetOption, GrantTargetPicker, InventoryBrowserLine, InventoryRow,
42    InventoryRowView, InventorySection, InventoryTab, LedgerPeriod, LIST_PAGE_SIZE, LoadoutHotbarChoice, MoveOption,
43    MoveOptionKind, MovePicker, NearbyContainer, RotationEditorMode, RotationEditorState, ShopTab,
44    StoragePickOption, StorageUiMode, WorkerGiveOption, WorkerGivePicker, WorkerGiveTargetOption,
45    WorkerGiveTargetPicker, WorkerTakePicker, WorkerTeachOption, WorkerTeachPicker, CONTAINER_RANGE_M,
46    WORKER_GIVE_RANGE_M,
47};
48pub use worker_route_editor::{
49    node_candidates, owned_container_candidates, owned_container_candidates_with_occupants,
50    owned_lodging_container_ids, owned_lodging_container_ids_with_occupants,
51    owned_storage_template_ids, pick_lodging_container_at, pick_resource_node_at,
52    pick_storage_container_at, pick_trade_npc_at, route_item_template_candidates,
53    summarize_contents, trade_npc_candidates, worker_craft_blueprint_ids, ContainerCandidate,
54    NodeCandidate, RouteEditorClick, RouteEditorSheet, TradeNpcCandidate, WithdrawLineDraft,
55    WithdrawLineMode, WorkerRouteEditorState, WorkerRouteStop, WorkerRouteWaypoint,
56    WorkerRouteWithdrawItem, ADD_MENU, WAYPOINT_MENU,
57};
58pub use harvest_debug::{verbose as harvest_debug_verbose, TARGET as HARVEST_LOG_TARGET};
59pub use navigation::AutoNavigator;
60pub use remote::RemoteSession;
61pub use session::{PlayConnection, SessionEvent};
62pub use settings::{load_client_settings, ClientKeyBindings, ClientSettings};
63pub use use_world::{UseWorldCandidate, UseWorldKind, UseWorldProbe, USE_WORLD_NEARBY_SCAN_M};