Enum Class MapleDataType
- All Implemented Interfaces:
Serializable, Comparable<MapleDataType>, Constable
WZ 資料節點的值型別枚舉,對應 XML 元素名稱與原始 WZ 二進位格式中的型別代碼。
列舉值與 WZ XML 元素名稱的對應:
PROPERTY—imgdir,屬性容器節點(子節點集合)。CANVAS—canvas,點陣圖影像,資料值為MapleCanvas。VECTOR—vector,二維整數座標,資料值為Point。CONVEX、SOUND、UOL— 凸多邊形、音效、物件連結。INT、SHORT、FLOAT、DOUBLE、STRING— 基本數值與字串。IMG_0x00、NONE、EXTENDED、UNKNOWN_TYPE、UNKNOWN_EXTENDED_TYPE— 特殊/未知節點。
由 MapleData.getType() 依 DOM 節點名稱推導回傳,
再由 MapleData.getData() 與 MapleDataTool 的各型別讀取方法依此分派轉型。
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic MapleDataTypeReturns the enum constant of this class with the specified name.static MapleDataType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
IMG_0x00
-
SHORT
-
INT
-
FLOAT
-
DOUBLE
-
STRING
-
EXTENDED
-
PROPERTY
-
CANVAS
-
VECTOR
-
CONVEX
-
SOUND
-
UOL
-
UNKNOWN_TYPE
-
UNKNOWN_EXTENDED_TYPE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-