live2d_parser/cubism_v1/
mod.rs

1use serde::{Deserialize, Serialize};
2
3mod moc;
4
5#[derive(Debug, Serialize, Deserialize)]
6pub struct Live2DExpression {
7    pub name: String,
8    pub file: String,
9}
10
11#[derive(Debug, Serialize, Deserialize)]
12struct Live2dTapMotion {
13    pub file: String,
14    // pub time_limit: Option<_>,
15    // pub intimacy: Option<_>,
16}
17
18#[derive(Debug, Default, Serialize, Deserialize)]
19pub struct Live2dMotions {
20    pub tap: Vec<Live2dTapMotion>,
21}
22
23#[derive(Debug, Serialize, Deserialize)]
24pub struct ModelJson {
25    pub version: String,
26    pub model: String,
27    pub textures: Vec<String>,
28    // pub bubble: Option<_>,
29    pub motions: Live2dMotions,
30    pub expressions: Vec<Live2DExpression>,
31    pub physics: String,
32    // pub intimacy_param: Option<_>,
33}