Open the unit card from the visible model (#153)

This commit is contained in:
2026-12-01 23:43:14 +03:00
parent 5e3907aa99
commit b882dc3c2b
8 changed files with 375 additions and 15 deletions
+7
View File
@@ -80,6 +80,13 @@ pub struct Model {
pub glow: bool,
}
impl Model {
/// Multipart models use the IDs immediately after their owning object.
pub fn object_id(&self) -> u32 {
self.id - self.id % PARTS
}
}
pub struct Particle {
pub kind: &'static str,
pub at: DVec3,