1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
use std::default::Default; #[derive(Clone, Debug)] pub struct SpritesheetGeneratorConfig { pub max_width: u32, pub max_height: u32, pub border_padding: u32, pub input_folder: String, pub output_folder: String, pub output_file_name: String, } impl Default for SpritesheetGeneratorConfig { fn default() -> SpritesheetGeneratorConfig { SpritesheetGeneratorConfig { max_width: 1024, max_height: 1024, border_padding: 2, input_folder: "assets/".to_string(), output_folder: "resources/".to_string(), output_file_name: "spritesheet".to_string(), } } }