1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-05-07 21:17:46 +00:00
kawari/src/world/actor.rs
Joshua Goins 10c1369119 Add opcode for despawning actors, send that when changing zones
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.
2025-04-14 16:09:14 -04:00

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
}