Crates.io | mumblelink_reader |
lib.rs | mumblelink_reader |
version | 0.3.5 |
source | src |
created_at | 2021-08-31 22:06:56.525523 |
updated_at | 2021-09-05 13:54:55.445646 |
description | Mumblelink reader for Windows & Unix based operating systems |
homepage | |
repository | https://github.com/norbert-k/mumblelink_reader |
max_upload_size | |
id | 445328 |
size | 16,435 |
use mumblelink_reader::mumble_link_handler::MumbleLinkHandler;
use mumblelink_reader::mumble_link::MumbleLinkReader;
use std::{thread, time};
fn main() {
let handler = MumbleLinkHandler::new().unwrap();
loop {
let linked_memory = handler.read().unwrap();
println!("{:?}", linked_memory);
thread::sleep(time::Duration::from_millis(50));
}
}
use mumblelink_reader::mumble_link_handler::MumbleLinkHandler;
use mumblelink_reader::mumble_link::{MumbleLinkReader, MumbleLinkDataReader};
use std::{thread, time};
#[derive(Copy, Clone, Debug)]
#[repr(C)]
struct GuildwarsContext {
pub server_address: [u8; 28],
pub map_id: u32,
pub map_type: u32,
pub shard_id: u32,
pub instance: u32,
pub build_id: u32,
pub ui_state: u32,
pub compass_width: u16,
pub compass_height: u16,
pub compass_rotation: f32,
pub player_x: f32,
pub player_y: f32,
pub map_center_x: f32,
pub map_center_y: f32,
pub map_scale: f32,
pub process_id: u32,
pub mount_index: u8,
}
fn main() {
let handler = MumbleLinkHandler::new().unwrap();
loop {
let linked_memory = handler.read().unwrap();
println!("{:?}", linked_memory.read_context_into_struct::<GuildwarsContext>());
thread::sleep(time::Duration::from_millis(50));
}
}
TODO: