11 releases
0.3.5 | Sep 5, 2021 |
---|---|
0.3.4 | Sep 2, 2021 |
0.2.3 | Sep 1, 2021 |
0.1.0 | Aug 31, 2021 |
#412 in Operating systems
71 downloads per month
16KB
277 lines
mumblelink_reader
Reading data from MumbleLink
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));
}
}
Reading data from context (eg: Guildwars2)
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:
- Proper Unix based OS support
- Test suite
- Java JNI & dylib support (C#)
Dependencies
~0.3–1MB
~19K SLoC