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
27 lines
550 B
C#
27 lines
550 B
C#
using System.IO;
|
|
|
|
namespace Server.Core
|
|
{
|
|
public static class ServerConst
|
|
{
|
|
private static bool? isTest;
|
|
|
|
/// <summary>
|
|
/// 是否测试环境
|
|
/// </summary>
|
|
public static bool IsTest
|
|
{
|
|
get
|
|
{
|
|
if (!isTest.HasValue)
|
|
{
|
|
isTest = !File.Exists("c:/release");
|
|
}
|
|
|
|
return isTest.Value;
|
|
}
|
|
}
|
|
|
|
public static int MainThreadId;
|
|
}
|
|
} |