diff options
author | tom barrett <spalf0@gmail.com> | 2019-07-23 00:54:35 -0500 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2019-07-23 03:48:58 -0500 |
commit | 2ee665ef6954f6eab9f0398c19284b3ea4c8246d (patch) | |
tree | a64d57f2fecbded780d93f464b36354f432c3033 /src/animations.rs | |
parent | f351a002b66ae8a4b73588b7ffdffc69623181f3 (diff) |
state -> world, moved struct members to private
Diffstat (limited to 'src/animations.rs')
-rw-r--r-- | src/animations.rs | 10 |
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 { |