Enum Class MapleDataType

All Implemented Interfaces:
Serializable, Comparable<MapleDataType>, Constable

public enum MapleDataType extends Enum<MapleDataType>
WZ 資料節點的值型別枚舉,對應 XML 元素名稱與原始 WZ 二進位格式中的型別代碼。

列舉值與 WZ XML 元素名稱的對應:

  • PROPERTYimgdir,屬性容器節點(子節點集合)。
  • CANVAScanvas,點陣圖影像,資料值為 MapleCanvas
  • VECTORvector,二維整數座標,資料值為 Point
  • CONVEXSOUNDUOL — 凸多邊形、音效、物件連結。
  • INTSHORTFLOATDOUBLESTRING — 基本數值與字串。
  • IMG_0x00NONEEXTENDEDUNKNOWN_TYPEUNKNOWN_EXTENDED_TYPE — 特殊/未知節點。

MapleData.getType() 依 DOM 節點名稱推導回傳, 再由 MapleData.getData()MapleDataTool 的各型別讀取方法依此分派轉型。

  • Enum Constant Details

  • Method Details

    • values

      public static MapleDataType[] 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

      public static MapleDataType valueOf(String name)
      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 name
      NullPointerException - if the argument is null