1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
macro_rules! create_guarded_uuid {
($this_val:ident) => {
#[derive(
PartialEq, Eq, Hash, serde::Serialize, serde::Deserialize, Copy, Clone, Default,
)]
pub struct $this_val(uuid::Uuid);
impl std::fmt::Debug for $this_val {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{} -- {}", stringify!($this_val), self.0)
}
}
impl $this_val {
pub fn new() -> Self {
Self(uuid::Uuid::new_v4())
}
pub fn with_id(id: uuid::Uuid) -> Self {
Self(id)
}
pub fn with_string(input: &str) -> Self {
Self(uuid::Uuid::parse_str(input).unwrap())
}
pub fn inner(&self) -> uuid::Uuid {
self.0
}
}
};
}
mod typings {
mod paths;
pub use paths::*;
mod tags;
pub use tags::Tags;
mod audio_group;
pub use audio_group::AudioGroup;
pub mod sprite {
pub use super::*;
mod sprite;
pub use sprite::*;
mod sprite_constants;
pub use sprite_constants::*;
mod sequence;
pub use sequence::*;
mod frames_layers;
pub use frames_layers::*;
}
pub mod texture_group;
mod yyp;
pub use yyp::*;
}
pub use typings::*;
pub mod utils {
mod trailing_comma_utility;
pub use trailing_comma_utility::TrailingCommaUtility;
mod path_validator;
pub use path_validator::PathValidator;
}