diff options
| author | troido <troido@protonmail.com> | 2020-03-01 22:28:02 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-03-01 22:28:02 +0100 |
| commit | 6a7a74e6878ff04e61e6ef21a922e314b9bab271 (patch) | |
| tree | b26015955f50856052153019969f7bee8d1cfbd3 /src/attack.rs | |
| parent | c846e929a88837094d7a5383a306df1fec56c333 (diff) | |
use generics for message components
Diffstat (limited to 'src/attack.rs')
| -rw-r--r-- | src/attack.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/attack.rs b/src/attack.rs deleted file mode 100644 index a0b8b99..0000000 --- a/src/attack.rs +++ /dev/null @@ -1,17 +0,0 @@ - -use specs::Entity; - -#[derive(Debug, Clone, Default)] -pub struct Attack { - pub damage: i64, - pub attacker: Option<Entity> -} - -impl Attack { - pub fn new(damage: i64) -> Self { - Self { - damage, - attacker: None - } - } -} |
