OSDN Git Service

MMD Ver7.40 対応
[mikutoga/TogaGem.git] / src / main / java / jp / sfjp / mikutoga / vmd / VmdConst.java
1 /*
2  * VMD constant data
3  *
4  * License : The MIT License
5  * Copyright(c) 2011 MikuToga Partners
6  */
7
8 package jp.sfjp.mikutoga.vmd;
9
10 /**
11  * VMDファイルフォーマットの各種定数。
12  */
13 public final class VmdConst {
14
15     /**
16      * VMDファイルヘッダ長。バイト単位。
17      */
18     public static final int HEADER_LENGTH = 30;
19
20     /**
21      * ファイルヘッダ部先頭のASCIIコード相当部。
22      */
23     public static final String MAGIC_TXT = "Vocaloid Motion Data 0002";
24
25     /**
26      * モデル名最大長。バイト単位。
27      */
28     public static final int MODELNAME_MAX = 20;
29
30     /**
31      * ボーン名最大長。バイト単位。
32      */
33     public static final int BONENAME_MAX = 15;
34
35     /**
36      * モーフ名最大長。バイト単位。
37      */
38     public static final int MORPHNAME_MAX = 15;
39
40     /**
41      * IK ON/OFFスイッチ用ボーン名最大長。バイト単位。
42      * <p>※MikuMikuDance Ver7.40からの機能。
43      * <p>モーション指定用ボーン名と長さが違うので注意。
44      */
45     public static final int IKSWBONENAME_MAX = 20;
46
47
48     /**
49      * 隠しコンストラクタ。
50      */
51     private VmdConst(){
52         super();
53         assert false;
54         throw new AssertionError();
55     }
56
57 }