Class CashShopServer
java.lang.Object
handling.cashshop.CashShopServer
現金商城(Cash Shop)伺服器的靜態生命週期管理類別,預設監聽埠
8600。
本類別為三大伺服器之一(LoginServer / ChannelServer / CashShopServer),
由 server.Start 在啟動時呼叫 run_startup_configurations() 初始化,
內部持有一個 ServerConnection(ServerType.商城伺服器),
以及兩個 PlayerStorage(players 對應 CS 區、
playersMTS 對應 MTS 玩家拍賣區)。
- 玩家進入商城後由
CashShopOperation.EnterCS(MapleCharacter, MapleClient)注冊至players。 - 離開商城時由
CashShopOperation.LeaveCS(LittleEndianAccessor, MapleClient, MapleCharacter)解除注冊並傳送頻道切換封包。 shutdown()儲存所有在線角色、保存 MTS 資料後關閉 Netty 連線。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final PlayerStoragestatic final PlayerStoragestatic final Stringstatic booleanstatic final voidstatic final voidshutdown()
-
Constructor Details
-
CashShopServer
public CashShopServer()
-
-
Method Details
-
run_startup_configurations
public static final void run_startup_configurations() -
getSocket
-
getPlayerStorage
-
getPlayerStorageMTS
-
shutdown
public static final void shutdown() -
isShutdown
public static boolean isShutdown()
-