Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
088b3dbb
Commit
088b3dbb
authored
Jun 25, 2022
by
AnimeGitB
Browse files
Add initializers to GameServer
parent
cdc23a06
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/game/GameServer.java
View file @
088b3dbb
...
@@ -9,12 +9,15 @@ import emu.grasscutter.game.battlepass.BattlePassMissionManager;
...
@@ -9,12 +9,15 @@ import emu.grasscutter.game.battlepass.BattlePassMissionManager;
import
emu.grasscutter.game.combine.CombineManger
;
import
emu.grasscutter.game.combine.CombineManger
;
import
emu.grasscutter.game.drop.DropManager
;
import
emu.grasscutter.game.drop.DropManager
;
import
emu.grasscutter.game.dungeons.DungeonManager
;
import
emu.grasscutter.game.dungeons.DungeonManager
;
import
emu.grasscutter.game.dungeons.challenge.DungeonChallenge
;
import
emu.grasscutter.game.expedition.ExpeditionManager
;
import
emu.grasscutter.game.expedition.ExpeditionManager
;
import
emu.grasscutter.game.gacha.GachaManager
;
import
emu.grasscutter.game.gacha.GachaManager
;
import
emu.grasscutter.game.managers.InventoryManager
;
import
emu.grasscutter.game.managers.InventoryManager
;
import
emu.grasscutter.game.managers.MultiplayerManager
;
import
emu.grasscutter.game.managers.MultiplayerManager
;
import
emu.grasscutter.game.managers.chat.ChatManager
;
import
emu.grasscutter.game.managers.chat.ChatManager
;
import
emu.grasscutter.game.managers.chat.ChatManagerHandler
;
import
emu.grasscutter.game.managers.chat.ChatManagerHandler
;
import
emu.grasscutter.game.managers.energy.EnergyManager
;
import
emu.grasscutter.game.managers.stamina.StaminaManager
;
import
emu.grasscutter.game.player.Player
;
import
emu.grasscutter.game.player.Player
;
import
emu.grasscutter.game.quest.ServerQuestHandler
;
import
emu.grasscutter.game.quest.ServerQuestHandler
;
import
emu.grasscutter.game.shop.ShopManager
;
import
emu.grasscutter.game.shop.ShopManager
;
...
@@ -82,6 +85,10 @@ public final class GameServer extends KcpServer {
...
@@ -82,6 +85,10 @@ public final class GameServer extends KcpServer {
this
.
init
(
GameSessionManager
.
getListener
(),
channelConfig
,
address
);
this
.
init
(
GameSessionManager
.
getListener
(),
channelConfig
,
address
);
DungeonChallenge
.
initialize
();
EnergyManager
.
initialize
();
StaminaManager
.
initialize
();
this
.
address
=
address
;
this
.
address
=
address
;
this
.
packetHandler
=
new
GameServerPacketHandler
(
PacketHandler
.
class
);
this
.
packetHandler
=
new
GameServerPacketHandler
(
PacketHandler
.
class
);
this
.
questHandler
=
new
ServerQuestHandler
();
this
.
questHandler
=
new
ServerQuestHandler
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment