flatland-client-lib 0.2.32

Flatland3 remote game client library (TCP session, bots, game state)
Documentation
//! Shared gameplay session state for TUI, bots, and third-party clients.

mod assets;
mod asset_backend;
mod bot;
mod character_sheet;
mod client_config;
mod connect;
pub mod content_pack;
pub mod currency;
mod publish_packs;
mod game;
mod worker_route_editor;
pub mod harvest_debug;
pub mod navigation;
mod remote;
mod session;
mod settings;
mod social;
mod update;
mod use_world;
mod world_zones;

pub use asset_backend::{
    mime_for_path, store_from_config, AssetBackendConfig, AssetBackendKind, AssetStore,
    GcsAssetStore, LocalAssetStore, S3AssetStore,
};
pub use assets::{
    assets_index_url, build_bundle_index, build_client_bundle_index, firebase_download_url,
    firebase_object_path, find_repo_paperdoll_dir, needs_asset_sync,
    paperdoll_has_keyframe_animations, read_local_state, read_repo_publish_rev,
    resolve_bundle_file_path, resolve_paperdoll_dir, resolve_sprites_dir, should_prefer_repo_assets,
    sync_assets, synced_rev_dir, urlencoding_encode_path, AssetBundleIndex, AssetFileEntry,
    AssetSyncKind, AssetSyncOptions, AssetSyncResult, ClientBundleSources, LocalAssetState,
    DEFAULT_FIREBASE_BUCKET, ASSETS_INDEX_OBJECT,
};
pub use content_pack::{
    build_sim_pack_index, download_sim_pack, ensure_sim_pack_cached, resolve_sim_pack_file,
    sim_pack_cache_dir, upload_sim_pack, SIM_PACK_ASSET_DIRS,
};
pub use publish_packs::{publish_content_packs, publish_content_packs_opts, PublishPacksResult};
pub use bot::{BotClient, BotConfig, BotStats};
pub use character_sheet::{
    build_character_sheet, format_pool_xp, format_progress_pct, format_xp_band,
    format_xp_band_compact, format_xp_delta, format_xp_value, AttributeRow, CharacterSheet,
    PoolRow, SheetSync, SkillRow,
};
pub use client_config::{
    api_base_url_for_host, apply_host_override, default_api_base_url, default_game_server_addr,
    host_override_active, normalize_host_input, resolve_game_host_addr, ClientConfig,
    FloatingChatPrefs, GfxWindowPrefs, DEFAULT_API_PORT, DEFAULT_GAME_PORT,
};
pub use connect::{connect, connect_tcp, default_server_addr, ConnectOptions};
pub use flatland_protocol::AuthCredential;
pub use game::{
    body_slot_label, equip_paperdoll_rows, format_binding_mode, format_binding_ttl,
    format_status_bindings_suffix, inventory_category_group, category_default_listable,
    list_label_matches, page_list_index,
    worker_error_is_transient, worker_error_is_hud_noise, worker_attention_line, BankUiMode, CharacterSheetTab, ContextLine, DEFAULT_TICK_HZ, EquipPaperdollRow,
    FarmAccessRow, GameClient, GameState, GrantTargetOption, GrantTargetPicker, InventoryBrowserLine, InventoryRow,
    InventoryRowView, InventorySection, InventoryTab, LedgerPeriod, LIST_PAGE_SIZE, LoadoutHotbarChoice, MarketListSourceKind,
    MarketUiMode, MoveOption,
    MoveOptionKind, MovePicker, NearbyContainer, RotationEditorMode, RotationEditorState, ShopTab,
    StoragePickOption, StorageUiMode, WorkerGiveOption, WorkerGivePicker, WorkerGiveTargetOption,
    WorkerGiveTargetPicker, WorkerTakePicker, WorkerTeachOption, WorkerTeachPicker, ClaimModeState, RelocateModeState, CONTAINER_RANGE_M,
    WORKER_GIVE_RANGE_M, resource_node_near_action_suffix, resource_node_near_display_label,
};
pub use worker_route_editor::{
    node_candidates, node_candidates_stable, owned_container_candidates, owned_container_candidates_with_occupants,
    owned_container_candidates_with_occupants_and_buildings,
    owned_lodging_container_ids, owned_lodging_container_ids_with_occupants,
    owned_storage_template_ids, pick_lodging_container_at, pick_resource_node_at,
    route_editor_lodging_anchor,
    pick_storage_container_at, pick_trade_npc_at, route_item_template_candidates,
    summarize_contents, trade_npc_candidates, worker_craft_blueprint_ids, ContainerCandidate,
    NodeCandidate, RouteEditorClick, RouteEditorSheet, TradeNpcCandidate, WithdrawLineDraft,
    WithdrawLineMode, WorkerRouteEditorState, WorkerRouteStop, WorkerRouteWaypoint,
    WorkerRouteWithdrawItem, ADD_MENU, WAYPOINT_MENU, FarmPlotAction, harvest_picker_row_count,
    harvest_picker_row_matches, list_filter_row_matches, ROUTE_PICKER_DONE_ROW,
    SELL_ITEM_TOGGLE_ROW, sell_item_picker_row_count,
};
pub use harvest_debug::{verbose as harvest_debug_verbose, TARGET as HARVEST_LOG_TARGET};
pub use navigation::AutoNavigator;
pub use remote::RemoteSession;
pub use session::{PlayConnection, SessionEvent};
pub use settings::{load_client_settings, ClientKeyBindings, ClientSettings};
pub use update::{
    apply_update, check_for_update, check_updates_enabled, cleanup_old_binaries,
    default_latest_url, fetch_latest_manifest, is_newer, local_version, platform_tag, update_dir,
    AppliedUpdate, Artifact, UpdateAvailable, UpdateManifest,
};
pub use social::{
    contacts_from_stacks, self_chat_rgb, speaker_chat_rgb, AudioCue, ChatLogEntry, ChatThreadKind,
    PendingTradeRequest, PlayerVerbState, SocialChatState, SpeakingBubble, TradeUiState,
    WhisperContact, WhisperPouchUi,
};
pub use use_world::{UseWorldCandidate, UseWorldKind, UseWorldProbe, USE_WORLD_NEARBY_SCAN_M};
pub use world_zones::{zone_friendly_label, WorldZoneChip, WorldZoneLayer};