// ========================================================================================== // GameFrameX 组织及其衍生项目的版权、商标、专利及其他相关权利 // GameFrameX organization and its derivative projects' copyrights, trademarks, patents, and related rights // 均受中华人民共和国及相关国际法律法规保护。 // are protected by the laws of the People's Republic of China and relevant international regulations. // 使用本项目须严格遵守相应法律法规及开源许可证之规定。 // Usage of this project must strictly comply with applicable laws, regulations, and open-source licenses. // 本项目采用 Apache License 2.0 单协议分发, // This project is licensed solely under the Apache License 2.0, // 完整许可证文本请参见源代码根目录下的 LICENSE 文件。 // please refer to the LICENSE file in the root directory of the source code for the full license text. // 禁止利用本项目实施任何危害国家安全、破坏社会秩序、 // It is prohibited to use this project to engage in any activities that endanger national security, disrupt social order, // 侵犯他人合法权益等法律法规所禁止的行为! // or infringe upon the legitimate rights and interests of others, as prohibited by laws and regulations! // 因基于本项目二次开发所产生的一切法律纠纷与责任, // Any legal disputes and liabilities arising from secondary development based on this project // 本项目组织与贡献者概不承担。 // shall be borne solely by the developer; the project organization and contributors assume no responsibility. // GitHub 仓库:https://github.com/GameFrameX // GitHub Repository: https://github.com/GameFrameX // Gitee 仓库:https://gitee.com/GameFrameX // Gitee Repository: https://gitee.com/GameFrameX // CNB 仓库:https://cnb.cool/GameFrameX // CNB Repository: https://cnb.cool/GameFrameX // 官方文档:https://gameframex.doc.alianblank.com/ // Official Documentation: https://gameframex.doc.alianblank.com/ // ========================================================================================== namespace GameFrameX.Utility.Setting; /// /// 游戏服务器常量定义(名称 + 服务器ID)。 /// /// /// 职责边界(CR-L04):本类只登记「服务角色」的 Name / Id 成对常量(按 ID 段分组), /// 不承载 ID 位布局、键名或运行期配置——前者归 , /// 后者归 / 。 /// 新增服务角色时按既有 ID 段归组,禁止把业务常量塞进本类。 /// public static class GameServerConst { #region 核心服务 /// /// 玩家主服务 /// public static class Game { /// /// 服务名称 /// public const string Name = "Game"; /// /// 服务ID /// public const int Id = 1000; } #endregion #region 5000-5999 接入与社交通信 /// /// 网关服务 /// public static class Gateway { /// /// 服务名称 /// public const string Name = "Gateway"; /// /// 服务ID /// public const int Id = 5000; } /// /// 即时通信服务 /// public static class Im { /// /// 服务名称 /// public const string Name = "Im"; /// /// 服务ID /// public const int Id = 5500; } /// /// 鉴权服务 /// public static class Auth { /// /// 服务名称 /// public const string Name = "Auth"; /// /// 服务ID /// public const int Id = 5040; } /// /// 社交服务 /// public static class Social { /// /// 服务名称 /// public const string Name = "Social"; /// /// 服务ID /// public const int Id = 5530; } /// /// 房间服务 /// public static class Room { /// /// 服务名称 /// public const string Name = "Room"; /// /// 服务ID /// public const int Id = 7010; } /// /// 登录服务 /// public static class Login { /// /// 服务名称 /// public const string Name = "Login"; /// /// 服务ID /// public const int Id = 5030; } /// /// 聊天服务 /// public static class Chat { /// /// 服务名称 /// public const string Name = "Chat"; /// /// 服务ID /// public const int Id = 5510; } /// /// 公会服务 /// public static class Guild { /// /// 服务名称 /// public const string Name = "Guild"; /// /// 服务ID /// public const int Id = 5570; } /// /// 邮件服务 /// public static class Mail { /// /// 服务名称 /// public const string Name = "Mail"; /// /// 服务ID /// public const int Id = 5590; } #endregion #region 6000-6499 玩法成长 /// /// 排行榜服务 /// public static class Rank { /// /// 服务名称 /// public const string Name = "Rank"; /// /// 服务ID /// public const int Id = 6050; } /// /// 场景服务 /// public static class Scene { /// /// 服务名称 /// public const string Name = "Scene"; /// /// 服务ID /// public const int Id = 7020; } /// /// 世界服务 /// public static class World { /// /// 服务名称 /// public const string Name = "World"; /// /// 服务ID /// public const int Id = 7030; } /// /// 战斗服务 /// public static class Battle { /// /// 服务名称 /// public const string Name = "Battle"; /// /// 服务ID /// public const int Id = 7040; } /// /// 组队服务 /// public static class Team { /// /// 服务名称 /// public const string Name = "Team"; /// /// 服务ID /// public const int Id = 5550; } /// /// 队伍服务 /// public static class Party { /// /// 服务名称 /// public const string Name = "Party"; /// /// 服务ID /// public const int Id = 5560; } /// /// 联赛服务 /// public static class League { /// /// 服务名称 /// public const string Name = "League"; /// /// 服务ID /// public const int Id = 6060; } /// /// 战盟服务 /// public static class Clan { /// /// 服务名称 /// public const string Name = "Clan"; /// /// 服务ID /// public const int Id = 5580; } /// /// 交易服务 /// public static class Trade { /// /// 服务名称 /// public const string Name = "Trade"; /// /// 服务ID /// public const int Id = 7610; } /// /// 拍卖服务 /// public static class Auction { /// /// 服务名称 /// public const string Name = "Auction"; /// /// 服务ID /// public const int Id = 7620; } /// /// 背包服务 /// public static class Inventory { /// /// 服务名称 /// public const string Name = "Inventory"; /// /// 服务ID /// public const int Id = 7600; } /// /// 任务服务 /// public static class Quest { /// /// 服务名称 /// public const string Name = "Quest"; /// /// 服务ID /// public const int Id = 6010; } /// /// 成就服务 /// public static class Achievement { /// /// 服务名称 /// public const string Name = "Achievement"; /// /// 服务ID /// public const int Id = 6020; } /// /// 活动服务 /// public static class Activity { /// /// 服务名称 /// public const string Name = "Activity"; /// /// 服务ID /// public const int Id = 6030; } /// /// 运营事件服务 /// public static class Event { /// /// 服务名称 /// public const string Name = "Event"; /// /// 服务ID /// public const int Id = 6040; } #endregion #region 6500-6999 经济交易 /// /// 支付服务 /// public static class Payment { /// /// 服务名称 /// public const string Name = "Payment"; /// /// 服务ID /// public const int Id = 6530; } /// /// 订单服务 /// public static class Order { /// /// 服务名称 /// public const string Name = "Order"; /// /// 服务ID /// public const int Id = 6520; } /// /// 充值服务 /// public static class Recharge { /// /// 服务名称 /// public const string Name = "Recharge"; /// /// 服务ID /// public const int Id = 6540; } #endregion #region 8000-8499 运营治理 /// /// 反作弊服务 /// public static class AntiCheat { /// /// 服务名称 /// public const string Name = "AntiCheat"; /// /// 服务ID /// public const int Id = 8030; } /// /// 内容审核服务 /// public static class Moderation { /// /// 服务名称 /// public const string Name = "Moderation"; /// /// 服务ID /// public const int Id = 8020; } /// /// GM 服务 /// public static class Gm { /// /// 服务名称 /// public const string Name = "Gm"; /// /// 服务ID /// public const int Id = 8000; } #endregion #region 5500-5999 社交通信 /// /// 公告服务 /// public static class Notice { /// /// 服务名称 /// public const string Name = "Notice"; /// /// 服务ID /// public const int Id = 5600; } /// /// 推送服务 /// public static class Push { /// /// 服务名称 /// public const string Name = "Push"; /// /// 服务ID /// public const int Id = 5610; } #endregion #region 8500-8999 数据观测 /// /// 分析服务 /// public static class Analytics { /// /// 服务名称 /// public const string Name = "Analytics"; /// /// 服务ID /// public const int Id = 8500; } /// /// 数仓服务 /// public static class DataWarehouse { /// /// 服务名称 /// public const string Name = "DataWarehouse"; /// /// 服务ID /// public const int Id = 8510; } /// /// 日志服务 /// public static class Log { /// /// 服务名称 /// public const string Name = "Log"; /// /// 服务ID /// public const int Id = 8520; } /// /// 监控服务 /// public static class Monitor { /// /// 服务名称 /// public const string Name = "Monitor"; /// /// 服务ID /// public const int Id = 8530; } /// /// 指标服务 /// public static class Metrics { /// /// 服务名称 /// public const string Name = "Metrics"; /// /// 服务ID /// public const int Id = 8540; } #endregion #region 5000-5499 接入基础 /// /// 配置服务 /// public static class Config { /// /// 服务名称 /// public const string Name = "Config"; /// /// 服务ID /// public const int Id = 5070; } /// /// 开关服务 /// public static class FeatureFlag { /// /// 服务名称 /// public const string Name = "FeatureFlag"; /// /// 服务ID /// public const int Id = 5080; } #endregion #region 7000-7499 战斗世界 /// /// AI 网关服务 /// public static class AiGateway { /// /// 服务名称 /// public const string Name = "AiGateway"; /// /// 服务ID /// public const int Id = 7090; } /// /// AI 匹配服务 /// public static class AiMatch { /// /// 服务名称 /// public const string Name = "AiMatch"; /// /// 服务ID /// public const int Id = 7100; } /// /// 回放服务 /// public static class Replay { /// /// 服务名称 /// public const string Name = "Replay"; /// /// 服务ID /// public const int Id = 7060; } /// /// 观战服务 /// public static class Spectator { /// /// 服务名称 /// public const string Name = "Spectator"; /// /// 服务ID /// public const int Id = 7050; } /// /// 锦标赛服务 /// public static class Tournament { /// /// 服务名称 /// public const string Name = "Tournament"; /// /// 服务ID /// public const int Id = 7070; } /// /// 跨服协调服务 /// public static class CrossServer { /// /// 服务名称 /// public const string Name = "CrossServer"; /// /// 服务ID /// public const int Id = 7080; } #endregion #region 5000-5499 接入基础 /// /// 代理服务 /// public static class Proxy { /// /// 服务名称 /// public const string Name = "Proxy"; /// /// 服务ID /// public const int Id = 5010; } /// /// 中继服务 /// public static class Relay { /// /// 服务名称 /// public const string Name = "Relay"; /// /// 服务ID /// public const int Id = 5020; } #endregion #region 5500-5999 社交通信 /// /// 语音服务 /// public static class Voice { /// /// 服务名称 /// public const string Name = "Voice"; /// /// 服务ID /// public const int Id = 5520; } #endregion #region 8000-8499 运营治理 /// /// 运营工具服务 /// public static class LiveOps { /// /// 服务名称 /// public const string Name = "LiveOps"; /// /// 服务ID /// public const int Id = 8010; } #endregion #region 6500-6999 经济交易 /// /// 热更补丁服务 /// public static class Patch { /// /// 服务名称 /// public const string Name = "Patch"; /// /// 服务ID /// public const int Id = 6560; } /// /// 资源分发服务 /// public static class Resource { /// /// 服务名称 /// public const string Name = "Resource"; /// /// 服务ID /// public const int Id = 6550; } #endregion #region 8500-8999 数据观测 /// /// 本地化服务 /// public static class Localization { /// /// 服务名称 /// public const string Name = "Localization"; /// /// 服务ID /// public const int Id = 8550; } #endregion #region 5000-5499 接入基础 /// /// SDK 聚合服务 /// public static class Sdk { /// /// 服务名称 /// public const string Name = "Sdk"; /// /// 服务ID /// public const int Id = 5060; } /// /// 账号服务 /// public static class Account { /// /// 服务名称 /// public const string Name = "Account"; /// /// 服务ID /// public const int Id = 5050; } #endregion #region 5500-5999 社交通信 /// /// 角色服务 /// public static class Character { /// /// 服务名称 /// public const string Name = "Character"; /// /// 服务ID /// public const int Id = 5620; } #endregion }