Crates.io | battlebit-api |
lib.rs | battlebit-api |
version | 0.2.2 |
source | src |
created_at | 2023-08-08 13:48:44.569641 |
updated_at | 2024-01-24 11:40:17.323988 |
description | Battlebit API library |
homepage | https://github.com/superyu1337/battlebit-api |
repository | |
max_upload_size | |
id | 939186 |
size | 1,971,451 |
A Battlebit API Library/Client for Rust
What you may be looking for:
[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()
)
});
}