mirror of
https://github.com/redstrate/Kawari.git
synced 2025-05-07 21:17:46 +00:00
This is to workaround a bigger bug where I don't properly enclose actors in their zone, so you can hit an assert while traveling between zones. But this is something that has been needed anyway, and also fixes that.
8 lines
208 B
Rust
8 lines
208 B
Rust
use crate::common::ObjectId;
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
pub struct Actor {
|
|
pub id: ObjectId,
|
|
pub hp: u32,
|
|
pub spawn_index: u32, // TODO: local to each connection, terrible place to put this
|
|
}
|