Skip to main content

scal_core/
project.rs

1use serde::{Deserialize, Serialize};
2
3use crate::anim_op::AnimOP;
4use crate::camera::Camera;
5use crate::color::Color;
6use crate::theme::Theme;
7
8#[derive(Clone, Debug, Serialize, Deserialize)]
9/// Declares the whole animation.
10/// Gets transported over IPC to the runtime to get previewed / rendered
11///
12#[allow(missing_docs)]
13pub struct Project {
14    pub scene_settings: SceneSettings,
15    pub timeline: Vec<AnimOP>,
16}
17
18#[derive(Clone, Debug, Serialize, Deserialize)]
19#[allow(missing_docs)]
20pub struct SceneSettings {
21    pub background_color: Color,
22    pub camera: Camera,
23    pub default_theme: Theme,
24}