vn-settings 0.5.0

Various settings intended to simulate visual novels
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
macro_rules! resettable {
    (<$($generic:ident),*> $type:ty { $($field:ident),* $(,)? }) => {
        impl<$($generic: crate::Resettable),*> crate::Resettable for $type {
            fn reset(&mut self) {
                $(self.$field.reset();)*
            }

            fn reset_aspects(&mut self) {
                $(self.$field.reset_aspects();)*
            }
        }
    };
}