Buildings Processing
Tile/Chunk updates events
This commit is contained in:
@@ -8,6 +8,7 @@ edition = "2021"
|
||||
[dependencies]
|
||||
bevy = "0.14.0"
|
||||
serde = { version = "1.0.204", features = ["derive"] }
|
||||
world_generation = { path = "../../engine/world_generation" }
|
||||
|
||||
|
||||
[features]
|
||||
|
||||
13
game/shared/src/events.rs
Normal file
13
game/shared/src/events.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
use bevy::prelude::*;
|
||||
use world_generation::hex_utils::*;
|
||||
|
||||
#[derive(Event)]
|
||||
pub enum TileModifiedEvent {
|
||||
HeightChanged(HexCoord, f32),
|
||||
TypeChanged(HexCoord, usize),
|
||||
}
|
||||
|
||||
#[derive(Event)]
|
||||
pub struct ChunkModifiedEvent {
|
||||
pub index: usize,
|
||||
}
|
||||
@@ -3,3 +3,4 @@ pub mod despawn;
|
||||
pub mod resource;
|
||||
pub mod states;
|
||||
pub mod tags;
|
||||
pub mod events;
|
||||
|
||||
Reference in New Issue
Block a user