diff options
| author | Arne Dußin | 2021-05-05 23:40:17 +0200 |
|---|---|---|
| committer | Arne Dußin | 2021-05-05 23:40:17 +0200 |
| commit | f3178df0a92fb3b87087e78cad7b9313f947be6a (patch) | |
| tree | a201943ce821f18bbb4e9bba393c87155d68a61a /src/components.rs | |
| download | pmd_coop-f3178df0a92fb3b87087e78cad7b9313f947be6a.tar.gz pmd_coop-f3178df0a92fb3b87087e78cad7b9313f947be6a.zip | |
Initial commit
Diffstat (limited to 'src/components.rs')
| -rw-r--r-- | src/components.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/components.rs b/src/components.rs new file mode 100644 index 0000000..c92ca03 --- /dev/null +++ b/src/components.rs @@ -0,0 +1,15 @@ +use specs::prelude::*; +use specs_derive::*; + +#[derive(Component, Debug, Clone, Copy)] +pub struct Pos +{ + pub x: f64, + pub y: f64, +} + +#[derive(Component)] +pub struct StaticDrawable +{ + pub texture_name: String, +} |
