generated from GarandPLG/rust-flake-template
Add tick thread and Skirmish state update
Introduce `AppEvent::Tick` and a background thread that emits timed events. `App` now handles `Tick` by calling a new `update` method, which advances the board and increments a `turn_counter` in `SkirmishState`. Add required imports, fields, and the `spawn_tick_thread` call in `main`.
This commit is contained in:
1 parent
b639531841
commit
7fb001faab
7 files changed
+54
-3
No files matched your search
@@ -1,5 +1,7 @@
|
||||
mod audio;
|
||||
mod events;
|
||||
mod tick;
|
||||
|
||||
pub use audio::{AudioCmd, SoundrackParts, Soundtrack, handle_audio};
|
||||
pub use events::{AppEvent, handle_events};
|
||||
pub use tick::spawn_tick_thread;
|
||||
Reference in new issue
Block a user