aboutsummaryrefslogtreecommitdiff
path: root/minecraft-chat/src/base_component.rs
blob: 30e66173b2d57f6b3281c83cb44e2843f3300d7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{component::Component, style::Style};

#[derive(Clone)]
pub struct BaseComponent {
    // implements mutablecomponent
    pub siblings: Vec<Component>,
    pub style: Style,
}

impl BaseComponent {
    pub fn new() -> Self {
        Self {
            siblings: Vec::new(),
            style: Style::new(),
        }
    }
}