battlebit-api

Crates.iobattlebit-api
lib.rsbattlebit-api
version0.2.2
sourcesrc
created_at2023-08-08 13:48:44.569641
updated_at2024-01-24 11:40:17.323988
descriptionBattlebit API library
homepagehttps://github.com/superyu1337/battlebit-api
repository
max_upload_size
id939186
size1,971,451
Janek (superyu1337)

documentation

README

Battlebit-api Latest Version

A Battlebit API Library/Client for Rust


What you may be looking for:

Example

Click to show Cargo.toml.
[dependencies]
battlebit-api = "0.2.2"

use battlebit_api::BBApi;

fn main() {
    let api = BBApi::new();
    let server_list = api.server_list()
        .expect("Retrieving server list");

    server_list.into_iter().for_each(|server| {
        println!("{} [{}, {}, {}] ({}, {}, {})", 
            server.name(), 
            server.gamemode(), 
            server.map(),
            server.map_size(),
            server.hz(), 
            server.anti_cheat(),
            server.build()
        )
    });
}
Commit count: 0

cargo fmt