WantsToApproach, WantsToFlee (functionality NYI)
This commit is contained in:
parent
9a9876349b
commit
bb8cf69b86
3 changed files with 16 additions and 0 deletions
|
|
@ -373,6 +373,16 @@ pub struct WantsToUseItem {
|
|||
pub target: Option<rltk::Point>,
|
||||
}
|
||||
|
||||
#[derive(Component, Debug, Serialize, Deserialize, Clone)]
|
||||
pub struct WantsToApproach {
|
||||
pub idx: i32,
|
||||
}
|
||||
|
||||
#[derive(Component, Debug, Serialize, Deserialize, Clone)]
|
||||
pub struct WantsToFlee {
|
||||
pub indices: Vec<usize>, // Dijkstra
|
||||
}
|
||||
|
||||
#[derive(Component, Debug, Serialize, Deserialize, Clone)]
|
||||
pub struct Consumable {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue