Skip to content

superyu1337/battlebit-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()
        )
    });
}

About

Battlebit API library in rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published