diff options
| author | troido <troido@protonmail.com> | 2020-02-23 21:25:36 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-23 21:25:36 +0100 |
| commit | 613952f918b8d72a3e397dc46be309b2320c6ad0 (patch) | |
| tree | 2f34c1d8fb2aed771a5714a266845df095e5b438 /src/components | |
| parent | 9a814769565ab36c227508c47792e112de338df1 (diff) | |
entities can be attacked
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/mod.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/mod.rs b/src/components/mod.rs index 14eb248..8941abb 100644 --- a/src/components/mod.rs +++ b/src/components/mod.rs @@ -18,7 +18,8 @@ use crate::{ Sprite, controls::Control, Template, - playerstate::RoomPos + playerstate::RoomPos, + attack::Attack }; #[derive(Debug, Clone)] @@ -109,3 +110,8 @@ pub struct RoomExit { pub destination: RoomId, pub dest_pos: RoomPos } + +#[derive(Component, Debug, Clone, Default)] +pub struct Attacked { + pub attacks: Vec<Attack> +} |
