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