diff options
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; |