-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This constitutes both a placeable zone for setting up a storage area, and the actual storage area itself. I probably want to split those apart at some point so that the zones and the targets are not the same thing.
- Loading branch information
Showing
25 changed files
with
264 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"zones": [ | ||
{ | ||
"key": "exploration", | ||
"target": { | ||
"key": "target", | ||
"path": "sprites/zones/exploration_target.png" | ||
}, | ||
"overlay": { | ||
"key": "overlay", | ||
"path": "sprites/zones/exploration_overlay.png" | ||
} | ||
}, | ||
{ | ||
"key": "setup_storage", | ||
"target": { | ||
"key": "target", | ||
"path": "sprites/zones/setup_storage_target.png" | ||
}, | ||
"overlay": { | ||
"key": "overlay", | ||
"path": "sprites/zones/setup_storage_overlay.png" | ||
} | ||
}, | ||
{ | ||
"key": "storage", | ||
"target": { | ||
"key": "target", | ||
"path": "sprites/zones/storage_target.png" | ||
}, | ||
"overlay": { | ||
"key": "overlay", | ||
"path": "sprites/zones/storage_overlay.png" | ||
} | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
mod body; | ||
mod mineable; | ||
mod mining_target; | ||
mod setup_storage_area; | ||
mod structure; | ||
|
||
pub use body::GridBody; | ||
pub use mineable::Mineable; | ||
pub use mining_target::MiningTarget; | ||
pub use setup_storage_area::SetupStorageArea; | ||
pub use structure::Structure; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
use tdlg::map::cells::Coordinate; | ||
|
||
#[derive(Clone)] | ||
pub struct SetupStorageArea { | ||
pub done: bool, | ||
pub coordinate: Coordinate, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
mod zone; | ||
mod zone_type; | ||
|
||
pub use zone::Zone; | ||
pub use zone_type::ZoneType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
use bevy::prelude::Component; | ||
|
||
/// Zones can be placed by the player to mark a place on the map | ||
/// for the characters to go and do something, either clear as an | ||
/// exploration target or set up something. | ||
#[derive(Component)] | ||
pub struct Zone; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
use bevy::prelude::Component; | ||
|
||
#[derive(Component, Clone, Debug, Copy)] | ||
pub enum ZoneType { | ||
Exploration, | ||
SetupStorageArea, | ||
StorageArea, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
use super::SingleSprite; | ||
|
||
#[derive(Clone, Debug, Deserialize, Serialize)] | ||
pub struct ZoneConfig { | ||
pub key: String, | ||
pub target: SingleSprite, | ||
pub overlay: SingleSprite, | ||
} | ||
|
||
#[derive(Clone, Debug, Deserialize, Serialize)] | ||
pub struct ZonesConfig { | ||
pub zones: Vec<ZoneConfig>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.