Spawn Building
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
use std::fmt::Display;
|
||||
|
||||
use crate::prelude::Chunk;
|
||||
use bevy::prelude::*;
|
||||
use serde::{Deserialize, Serialize};
|
||||
@@ -62,6 +64,12 @@ pub struct HexCoord {
|
||||
pub hex: IVec3,
|
||||
}
|
||||
|
||||
impl Display for HexCoord {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.write_fmt(format_args!("HexCoord{}", self.hex))
|
||||
}
|
||||
}
|
||||
|
||||
impl HexCoord {
|
||||
pub const DIRECTIONS: [IVec3; 6] = [
|
||||
IVec3::new(0, 1, -1),
|
||||
|
||||
Reference in New Issue
Block a user