Class CharacterTransfer
java.lang.Object
handling.world.CharacterTransfer
- All Implemented Interfaces:
Externalizable, Serializable
玩家跨頻道或進出現金商城時的角色狀態快照,用於無縫轉移。
當 MapleCharacter 需要在頻道間移動或切換至
handling.cashshop.CashShopServer 時,由 CharacterTransfer(MapleCharacter)
構造器將角色的全部狀態(屬性值、背包、技能、任務、好友清單、騎乘物、寵物、副本標記等)
序列化為本物件,存入 World 層的暫存結構;目標頻道取出後逐欄位還原至新的
MapleCharacter 實例。
實作 Externalizable,手寫 readExternal/writeExternal
以精確控制序列化欄位順序與編碼,避免攜帶 MapleQuest、
Skill 等大型物件(以 ID 代替)。TranferTime 記錄快照建立時間,
供逾時清除機制使用。
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintbyteintbooleanintfinal Map<CharacterNameAndId, Boolean> bytebytebyteintbooleanbooleanintbyteintintbooleanintshortintintbyteintintshortintbytebyteintintbyteintintintintshortint[]MapleImp[]byteshortshortintintlong[]longlong[]long[]shortshortintintintintintintintintbyteintbyteintintintbyte[]intintintintint[]shortint[]int[]int[]long[]intfinal Map<Integer, SkillEntry> byteshortbyteintintintfinal Map<MapleTrait.MapleTraitType, Integer> longintint[]byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoid
-
Field Details
-
characterid
public int characterid -
accountid
public int accountid -
exp
public int exp -
fame
public int fame -
pvpExp
public int pvpExp -
pvpPoints
public int pvpPoints -
meso
public int meso -
hair
public int hair -
face
public int face -
demonMarking
public int demonMarking -
mapid
public int mapid -
honourexp
public int honourexp -
honourlevel
public int honourlevel -
guildid
public int guildid -
partyid
public int partyid -
messengerid
public int messengerid -
ACash
public int ACash -
MaplePoints
public int MaplePoints -
mount_itemid
public int mount_itemid -
mount_exp
public int mount_exp -
points
public int points -
vpoints
public int vpoints -
marriageId
public int marriageId -
maxhp
public int maxhp -
maxmp
public int maxmp -
hp
public int hp -
mp
public int mp -
familyid
public int familyid -
seniorid
public int seniorid -
junior1
public int junior1 -
junior2
public int junior2 -
currentrep
public int currentrep -
totalrep
public int totalrep -
battleshipHP
public int battleshipHP -
gachexp
public int gachexp -
guildContribution
public int guildContribution -
totalWins
public int totalWins -
totalLosses
public int totalLosses -
onlinetime
public int onlinetime -
channel
public byte channel -
gender
public byte gender -
gmLevel
public byte gmLevel -
guildrank
public byte guildrank -
alliancerank
public byte alliancerank -
clonez
public byte clonez -
fairyExp
public byte fairyExp -
cardStack
public byte cardStack -
buddysize
public byte buddysize -
world
public byte world -
initialSpawnPoint
public byte initialSpawnPoint -
skinColor
public byte skinColor -
mount_level
public byte mount_level -
mount_Fatigue
public byte mount_Fatigue -
subcategory
public byte subcategory -
lastfametime
public long lastfametime -
TranferTime
public long TranferTime -
name
-
accountname
-
BlessOfFairy
-
BlessOfEmpress
-
chalkboard
-
tempIP
-
level
public short level -
str
public short str -
dex
public short dex -
int_
public short int_ -
luk
public short luk -
remainingAp
public short remainingAp -
hpApUsed
public short hpApUsed -
job
public short job -
fatigue
public short fatigue -
inventorys
-
skillmacro
-
storage
-
cs
-
anticheat
-
innerSkills
-
savedlocation
public int[] savedlocation -
wishlist
public int[] wishlist -
rocks
public int[] rocks -
remainingSp
public int[] remainingSp -
regrocks
public int[] regrocks -
hyperrocks
public int[] hyperrocks -
petStore
public byte[] petStore -
imps
-
mbook
-
reports
-
stolenSkills
-
keymap
-
familiars
-
finishedAchievements
-
famedcharacters
-
battledaccs
-
extendedSlots
-
rebuy
-
traits
-
buddies
-
Quest
-
InfoQuest
-
Skills
-
cardsInfo
-
reborns
public int reborns -
apstorage
public int apstorage -
chronosphere
public int chronosphere -
cschronosphere
public int cschronosphere -
lastTime
public long[] lastTime -
savelastTime
public long[] savelastTime -
lastSmegaTime
public long[] lastSmegaTime -
lastASmegaTime
public long[] lastASmegaTime -
check_msg_BuyMerChant
public boolean check_msg_BuyMerChant -
check_msg_Chat
public boolean check_msg_Chat -
attackdebug
public boolean attackdebug -
DebugMessage
public boolean DebugMessage
-
-
Constructor Details
-
CharacterTransfer
public CharacterTransfer() -
CharacterTransfer
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-