Skip to content

Commit e719dd5

Browse files
committed
refactor(StartUp): 将ServerType.Game替换为GlobalConst.GameName
统一使用全局常量定义服务器类型,提高代码可维护性
1 parent 69aea54 commit e719dd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GameFrameX.Launcher/StartUp/AppStartUpGame.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace GameFrameX.Launcher.StartUp;
3636
/// <summary>
3737
/// 游戏服务器
3838
/// </summary>
39-
[StartUpTag(ServerType.Game)]
39+
[StartUpTag(GlobalConst.GameName)]
4040
internal sealed class AppStartUpGame : AppStartUpBase
4141
{
4242
public override async Task StartAsync()
@@ -96,7 +96,7 @@ protected override void Init()
9696
Setting = new AppSetting
9797
{
9898
ServerId = 9000,
99-
ServerType = ServerType.Game,
99+
ServerType = GlobalConst.GameName,
100100
InnerPort = 29100,
101101
MetricsPort = 29090,
102102
HttpPort = 28080,

0 commit comments

Comments
 (0)