Add digging tasks and unit coordinate support

Introduce Tasks handling for units, store coordinates in MinerUnit,
expose getters/setters for unit tasks, add logging of marked cells,
and provide cell accessors for mutable unit options.
This commit is contained in:
GarandPLG committed 2026-05-12 13:42:13 +02:00
1 parent a3bb9dc6f1
commit f554fa2efc
5 files changed
+70 -7

No files matched your search

+8
View File
@@ -60,6 +60,14 @@ impl CellWidget {
self.unit.clone()
}
pub fn get_ref_option_unit(&self) -> &Option<Units> {
&self.unit
}
pub fn get_mut_option_unit(&mut self) -> &mut Option<Units> {
&mut self.unit
}
pub fn set_structure(&mut self, structure: Structures) -> &mut Self {
self.structure = structure;
self