6 major server modules (PdkFriendServer/GlobalSever/ServerCore/GameModule/GameNetModule) + game logic (GameFix/GameDAL/ServerData) + network layer (NetWorkMessage) + data layer (ObjectModel) + utilities (MrWu/Core/Config/CloudAPI/dll) + adapters (zyxAdapter/base) .NET 8.0 C# solution, 16 projects, 958 source files
35 lines
999 B
C#
35 lines
999 B
C#
|
|
using System.Collections.Generic;
|
|
|
|
namespace Cloud.Alibaba.Sls
|
|
{
|
|
public class SlsProjectConfig
|
|
{
|
|
public readonly string ProjectName;
|
|
|
|
public readonly string Endpoint;
|
|
|
|
public SlsProjectConfig(string projectName, string endpoint)
|
|
{
|
|
ProjectName = projectName;
|
|
Endpoint = endpoint;
|
|
}
|
|
|
|
private static readonly Dictionary<SlsProject, SlsProjectConfig> SlsProjectConfigs =
|
|
new Dictionary<SlsProject, SlsProjectConfig>();
|
|
|
|
static SlsProjectConfig()
|
|
{
|
|
SlsProjectConfigs.Add(SlsProject.ClientLog, new SlsProjectConfig("hjhaGame", "cn-hangzhou.log.aliyuncs.com"));
|
|
SlsProjectConfigs.Add(SlsProject.ServerLog, new SlsProjectConfig("hjha-game", "cn-hangzhou.log.aliyuncs.com"));
|
|
}
|
|
|
|
public static SlsProjectConfig GetConfig(SlsProject project)
|
|
{
|
|
return SlsProjectConfigs[project];
|
|
}
|
|
}
|
|
|
|
}
|
|
|