Skip to main content

Crate echovr

Crate echovr 

Source
Expand description

Rust bindings for the Echo VR local session HTTP API.

§Usage

use echovr::Client;

let client = Client::new();
let session = client.fetch_session()?;
println!("{} - {}", session.blue_points, session.orange_points);

Structs§

Client
Client for the Echo VR local session API.
Disc
HandTransform
Hand transform uses “pos” instead of “position”, unlike every other transform in the API. Modeled separately to match the actual JSON keys.
LastScore
Data about the last goal scored in the current match.
LastThrow
Data about the last throw made by the local client’s player. All values are zero when no throw has occurred this session.
LocalPlayer
Position and orientation of the local player within their physical playspace, not their position within the arena. See teams[].players[].head for in-arena position.
Pause
Player
Session
The full state of the current Echo VR session, deserialized from http://127.0.0.1:6721/session.
Stats
Team
Transform

Enums§

EchoError
GameStatus
GoalType
MapName
MatchType
PauseTeam
Which team is referenced in a pause context. “none” means no team applies.
PausedState
ScoringTeam
Which team scored or is being referenced in a score context.

Type Aliases§

Vec3
A 3D vector in Cartesian space, [x, y, z].