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