summaryrefslogtreecommitdiff
path: root/src/animations.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/animations.rs')
-rw-r--r--src/animations.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/animations.rs b/src/animations.rs
index e2cc009..b82b42e 100644
--- a/src/animations.rs
+++ b/src/animations.rs
@@ -10,9 +10,9 @@ use crate::tileset::Tileset;
#[derive(Debug, Clone, PartialEq)]
pub struct Animation {
- pub frames: Vec<Tile>,
- pub timer: Instant,
- pub current: Tile,
+ frames: Vec<Tile>,
+ timer: Instant,
+ current: Tile,
}
impl Animation {
@@ -55,8 +55,8 @@ impl Animation {
#[derive(Debug, Clone, PartialEq)]
pub struct Animations {
- pub available: HashMap<Action, Animation>,
- pub current: Animation,
+ available: HashMap<Action, Animation>,
+ current: Animation,
}
impl Animations {