real messages from backend to frontend

This commit is contained in:
2026-01-23 09:10:57 -07:00
parent 30a169ed06
commit c39f95b304
7 changed files with 515 additions and 216 deletions

View File

@@ -1,5 +1,5 @@
use std::collections::HashMap;
use rsbwapi::{Order, Position, Unit, UnitType, UpgradeType};
use std::collections::HashMap;
use crate::state::build_stages::BuildStage;
@@ -9,9 +9,9 @@ pub struct GameState {
pub build_stages: Vec<BuildStage>,
pub current_stage_index: usize,
pub desired_game_speed: i32,
pub stage_item_status: HashMap<String, String>,
}
impl Default for GameState {
fn default() -> Self {
Self {
@@ -20,6 +20,7 @@ impl Default for GameState {
build_stages: crate::state::build_stages::get_build_stages(),
current_stage_index: 0,
desired_game_speed: 20,
stage_item_status: HashMap::new(),
}
}
}