37 lines
1.5 KiB
Rust
37 lines
1.5 KiB
Rust
//! League Client API (LQP) module.
|
|
//!
|
|
//! This module handles communication with the League of Legends client
|
|
//! via WebSocket and REST API for game event detection and capture.
|
|
|
|
mod api_types;
|
|
mod auth;
|
|
mod client;
|
|
mod endpoints;
|
|
mod events;
|
|
mod state;
|
|
mod tls;
|
|
mod websocket;
|
|
|
|
pub use api_types::{
|
|
ActivePlayerResponse, ChampionSelectPlayer, ChampionSelectResponse, EndOfGamePlayer,
|
|
EndOfGameStatsResponse, EndOfGameTeam, GameData, GameflowSessionResponse, LiveClientItem,
|
|
LiveClientPlayer, PlayerListResponse, PlayerStats, PreGameData, QueueData, RunePageResponse,
|
|
SummonerResponse, SummonerSpellsData, TeamPlayer, Timers,
|
|
};
|
|
pub use auth::{LockfileCredentials, LockfileWatcher};
|
|
pub use client::LqpClient;
|
|
pub use endpoints::{
|
|
ALL_RUNE_PAGES, CHAMPION_SELECT, CHAMPION_SELECT_LOCAL_PLAYER, CHAMPION_SUMMARY,
|
|
GAMEFLOW_PHASE, GAME_STATS, LIVE_CLIENT_DATA, LIVE_CLIENT_DATA_ACTIVE_PLAYER,
|
|
LIVE_CLIENT_DATA_PLAYER_LIST, MATCH_HISTORY, RUNE_PAGES, SESSION, SUBSCRIBE_ENDPOINTS,
|
|
SUMMONER,
|
|
};
|
|
pub use events::{
|
|
ChampSelectStartInfo, ChampionPickInfo, DeathEvent, EventData, GameEndInfo, GameEvent,
|
|
GameStartInfo, GameflowSession, InGameStats, ItemBuild, ItemInfo, KillEvent, MatchInfo,
|
|
ObjectiveEvent, ObjectiveType, PlayerChampionSelection, PlayerGameMetadata, PlayerIdentity,
|
|
QueueInfo, RunePage, RuneSlot, SummonerSpells, TeamMember,
|
|
};
|
|
pub use state::{ClientState, GameflowPhase};
|
|
pub use websocket::{parse_event_from_uri, parse_websocket_message};
|