diff options
author | Griffin Smith <root@gws.fyi> | 2019-07-06T02·45-0400 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2019-07-06T02·45-0400 |
commit | de081d7b1d0b791b2e61f9cde7369ea11647e0ae (patch) | |
tree | 687236ac6ca2d094053fa43112d967554531de86 /src/entities |
an @-sign in a box
Diffstat (limited to 'src/entities')
-rw-r--r-- | src/entities/character.rs | 15 | ||||
-rw-r--r-- | src/entities/mod.rs | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/entities/character.rs b/src/entities/character.rs new file mode 100644 index 000000000000..e40b7b988e8d --- /dev/null +++ b/src/entities/character.rs @@ -0,0 +1,15 @@ +use crate::types::{Position, Speed}; + +const DEFAULT_SPEED: Speed = Speed(100); + +pub struct Character { + position: Position, +} + +impl Character { + pub fn speed(&self) -> Speed { + Speed(100) + } +} + +positioned!(Character); diff --git a/src/entities/mod.rs b/src/entities/mod.rs new file mode 100644 index 000000000000..78891226662a --- /dev/null +++ b/src/entities/mod.rs @@ -0,0 +1 @@ +pub mod character; |