25 lines
425 B
Rust
25 lines
425 B
Rust
use std::path::Display;
|
|
|
|
use bevy::prelude::Resource;
|
|
use shared::building::BuildingIdentifier;
|
|
use world_generation::hex_utils::HexCoord;
|
|
|
|
#[derive(Resource)]
|
|
pub struct BuildQueue {
|
|
pub queue: Vec<QueueEntry>,
|
|
}
|
|
|
|
impl Default for BuildQueue {
|
|
fn default() -> Self {
|
|
Self {
|
|
queue: Default::default(),
|
|
}
|
|
}
|
|
}
|
|
|
|
#[derive(PartialEq, Eq)]
|
|
pub struct QueueEntry {
|
|
pub building: BuildingIdentifier,
|
|
pub pos: HexCoord,
|
|
}
|