-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configs: individualize server configuration files
- Loading branch information
Showing
21 changed files
with
142 additions
and
170 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
common/src/main/kotlin/work/fking/pangya/common/server/ServerBoost.kt
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
common/src/main/kotlin/work/fking/pangya/common/server/ServerConfig.kt
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
common/src/main/kotlin/work/fking/pangya/common/server/ServerConfigLoader.kt
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
common/src/main/kotlin/work/fking/pangya/common/server/ServerFlag.kt
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
common/src/main/kotlin/work/fking/pangya/common/server/ServerIcon.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
game-server/src/main/kotlin/work/fking/pangya/game/GameServerConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package work.fking.pangya.game | ||
|
||
import work.fking.pangya.discovery.ServerBoost | ||
import work.fking.pangya.discovery.ServerConfig | ||
import work.fking.pangya.discovery.ServerFlag | ||
import work.fking.pangya.discovery.ServerIcon | ||
|
||
data class GameServerConfig( | ||
override val id: Int, | ||
override val name: String, | ||
override val capacity: Int, | ||
override val advertiseAddress: String, | ||
override val port: Int, | ||
override val flags: List<ServerFlag>?, | ||
override val boosts: List<ServerBoost>?, | ||
override val icon: ServerIcon?, | ||
val bindAddress: String, | ||
val serverChannels: List<ServerChannel> = emptyList() | ||
) : ServerConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 8 additions & 2 deletions
10
login-server/src/main/kotlin/work/fking/pangya/login/Bootstrap.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
login-server/src/main/kotlin/work/fking/pangya/login/LoginServerConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package work.fking.pangya.login | ||
|
||
import work.fking.pangya.discovery.ServerBoost | ||
import work.fking.pangya.discovery.ServerConfig | ||
import work.fking.pangya.discovery.ServerFlag | ||
import work.fking.pangya.discovery.ServerIcon | ||
|
||
data class LoginServerConfig( | ||
override val id: Int, | ||
override val name: String, | ||
override val capacity: Int, | ||
override val advertiseAddress: String, | ||
override val port: Int, | ||
override val flags: List<ServerFlag>?, | ||
override val boosts: List<ServerBoost>?, | ||
override val icon: ServerIcon?, | ||
val bindAddress: String | ||
) : ServerConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.