overmap, refactor offsets
This commit is contained in:
parent
9e294a1680
commit
746de971f0
14 changed files with 322 additions and 95 deletions
|
|
@ -3,6 +3,7 @@ use serde::{ Deserialize, Serialize };
|
|||
#[derive(PartialEq, Eq, Hash, Copy, Clone, Serialize, Deserialize)]
|
||||
pub enum TileType {
|
||||
// Walls (opaque)
|
||||
ImpassableMountain,
|
||||
Wall,
|
||||
// Impassable (transparent)
|
||||
DeepWater,
|
||||
|
|
@ -44,6 +45,7 @@ pub fn tile_walkable(tt: TileType) -> bool {
|
|||
|
||||
pub fn tile_opaque(tt: TileType) -> bool {
|
||||
match tt {
|
||||
TileType::ImpassableMountain => true,
|
||||
TileType::Wall => true,
|
||||
_ => false,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue