make some functions public; from_str functions; impl Display; error handling for Image
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use crate::{optional_data_line, AnimationFrames, Image};
|
||||
use crate::image::animation_frames_from_string;
|
||||
use crate::image::animation_frames_from_str;
|
||||
|
||||
#[derive(Clone, Debug, Eq)]
|
||||
pub struct Tile {
|
||||
@@ -103,8 +103,8 @@ impl From<String> for Tile {
|
||||
}
|
||||
}
|
||||
|
||||
let animation_frames = animation_frames_from_string(
|
||||
lines[1..].join("\n")
|
||||
let animation_frames = animation_frames_from_str(
|
||||
&lines[1..].join("\n")
|
||||
);
|
||||
|
||||
Tile {
|
||||
|
||||
Reference in New Issue
Block a user