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
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
#![allow(clippy::bool_comparison)]
#![warn(elided_lifetimes_in_paths)]

mod boss {
    use super::*;

    mod yy_resource;
    pub use yy_resource::{FileHolder, SerializedData, SerializedDataError, YyResource};

    mod yyp_boss;
    pub use yyp_boss::YypBoss;

    mod resources;
    pub use resources::Resource;

    mod yy_resource_handler;
    pub use yy_resource_handler::{YyResourceData, YyResourceHandler};

    mod directory_manager;
    pub mod utils;
    pub use utils::{FileSerializationError, SerializationFormat};

    mod project_metadata;
    pub use project_metadata::ProjectMetadata;

    mod errors;
    pub use errors::*;

    mod dirty_handler;
    mod pipelines;
    pub use pipelines::{PipelineDesinations, PipelineError, PipelineManager};

    pub mod folders {
        mod folder_graph;
        pub use folder_graph::*;

        mod folder_graph_error;
        pub use folder_graph_error::*;

        mod vfs;
        pub use vfs::*;

        mod resource_names;
        pub use resource_names::*;

        mod file;
        pub(crate) use file::*;
    }
}

mod resources_ext {
    use super::*;

    mod sprite_ext;
    pub use sprite_ext::*;

    mod paths_ext;
    pub use paths_ext::*;

    mod yyp_serialization;
    pub use yyp_serialization::*;

    mod script_ext;
    pub use script_ext::*;

    mod object_ext;
    pub use object_ext::*;

    pub(crate) mod dummy;

    mod note_ext;
    pub use note_ext::*;

    mod shader_ext;
    pub use shader_ext::*;

    mod unidentified_resources;
    pub use unidentified_resources::*;

    pub type SpriteImageBuffer = image::ImageBuffer<image::Rgba<u8>, Vec<u8>>;
}

#[allow(dead_code)]
pub mod cli {
    /// All input which the cli can receive as Json has their Rust forms defined here.
    pub mod input;

    /// All output which the cli can output as Json has their Rust forms defined here.
    pub mod output;

    /// All startup options which the cli can receive as Json has their Rust forms defined here.
    pub mod startup;

    /// Logging options for using the Cli.
    pub mod logging;

    #[doc(hidden)]
    pub(super) mod main_loop;

    #[doc(hidden)]
    pub mod yy_cli;
}

pub use boss::*;
pub use resources_ext::*;
pub use yy_typings;