Enum Class SavedLocationType
- All Implemented Interfaces:
Serializable, Comparable<SavedLocationType>, Constable
列舉所有可儲存返回點的地圖類型,用於
savedLocations 功能。
當玩家進入特殊地圖區域(如自由市場、釣魚場地、活動地圖等)時,
系統以對應的 SavedLocationType 索引記錄其原始位置,
離開後可透過該索引查詢並傳送回原位。
各列舉值對應的整數索引由 getValue() 取得,
並以 fromString(String) 支援從字串名稱反查(用於腳本與設定解析)。
儲存點資料由 MapleCharacter 管理,於角色載入與存檔時同步至資料庫。
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic SavedLocationTypefromString(String Str) intgetValue()static SavedLocationTypeReturns the enum constant of this class with the specified name.static SavedLocationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FREE_MARKET
-
MULUNG_TC
-
WORLDTOUR
-
FLORINA
-
FISHING
-
RICHIE
-
DONGDONGCHIANG
-
EVENT
-
AMORIA
-
CHRISTMAS
-
ARDENTMILL
-
GUILD
-
MONSTER_PARK
-
ARIANT
-
MAPLE_HIGH_SCHOOL
-
CRYSTALGARDEN
-
-
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
-
getValue
public int getValue() -
fromString
-