OSDN Git Service

use diamond operator.
[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      *
43      * <p>※MikuMikuDance Ver7.40からの機能。
44      *
45      * <p>モーション指定用ボーン名と長さが違うので注意。
46      */
47     public static final int IKSWBONENAME_MAX = 20;
48
49
50     /**
51      * 隠しコンストラクタ。
52      */
53     private VmdConst(){
54         super();
55         assert false;
56         throw new AssertionError();
57     }
58
59 }