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
28 lines
952 B
C#
28 lines
952 B
C#
using System.Collections.Generic;
|
|
|
|
namespace ObjectMessage
|
|
{
|
|
/// <summary>
|
|
/// 用做提示的状态码定义
|
|
/// </summary>
|
|
public static class MessageTipCode
|
|
{
|
|
public const int Error_WrongData = 1;
|
|
public const int Error_NoPermission = 2;
|
|
public const int Error_Argument = 3;
|
|
public const int Error_Server = 4;
|
|
public const int Error_DB = 5;
|
|
}
|
|
|
|
public static class MessageTip
|
|
{
|
|
public static Dictionary<int, string> Tips = new Dictionary<int, string>()
|
|
{
|
|
{ MessageTipCode.Error_WrongData, "数据错误!" },
|
|
{ MessageTipCode.Error_NoPermission, "您的权限不足!" },
|
|
{ MessageTipCode.Error_Argument, "参数错误!" },
|
|
{ MessageTipCode.Error_Server, "服务器错误,操作失败!" },
|
|
{ MessageTipCode.Error_DB, "数据库错误,操作失败!" },
|
|
};
|
|
}
|
|
} |