mirror of
https://github.com/redstrate/Kawari.git
synced 2025-05-08 13:27:44 +00:00
This now works and Kawari has achieved basic multiplayer! This is of course with a hundred caveats: * Previously spawned players are not backfilled * There is no range or zone detection * They are carbuncle clones of you, not the other character's data But it actually WORKS!
17 lines
422 B
Rust
17 lines
422 B
Rust
use binrw::binrw;
|
|
|
|
use crate::common::{Position, read_packed_position, write_packed_position};
|
|
|
|
#[binrw]
|
|
#[derive(Debug, Clone, Default)]
|
|
pub struct ActorMove {
|
|
pub dir: u8,
|
|
pub dir_before_slip: u8,
|
|
pub flag1: u8,
|
|
pub flat2: u8,
|
|
pub speed: u8,
|
|
#[brw(pad_before = 1, pad_after = 4)] // empty
|
|
#[br(map = read_packed_position)]
|
|
#[bw(map = write_packed_position)]
|
|
pub position: Position,
|
|
}
|