diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2019-05-18 21:28:18 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2019-05-18 21:28:18 +0200 |
commit | b3d6b7cb77a660fc8a8e96645627da16c6b7c059 (patch) | |
tree | a394b7d28083f182aa8fd3c27ce9fa90be122cab /src/game/powerup.rs | |
parent | dad50b87af3ecd23387bcf78dd16399a33074540 (diff) |
Started breaking up state for easier unit testing
Diffstat (limited to 'src/game/powerup.rs')
-rw-r--r-- | src/game/powerup.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/powerup.rs b/src/game/powerup.rs new file mode 100644 index 0000000..2f07816 --- /dev/null +++ b/src/game/powerup.rs @@ -0,0 +1,7 @@ +use crate::geometry::*; + +#[derive(Debug, PartialEq, Eq, Clone, Copy)] +pub struct Powerup { + pub position: Point2d<i8>, + pub value: i32 +} |