From 15fe3326b830a8f073ea587a7de379c97c288e20 Mon Sep 17 00:00:00 2001 From: bob <605277374@qq.com> Date: Tue, 12 Aug 2025 17:28:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../NetworkProtocol/ActivityMessage.cs | 12 + .../Generate/NetworkProtocol/ChatMessage.cs | 329 ++++++++++++ .../Generate/NetworkProtocol/ClubMessage.cs | 468 ++++++++++++++++++ .../Generate/NetworkProtocol/OuterMessage.cs | 237 +-------- .../Generate/NetworkProtocol/OuterOpcode.cs | 40 +- .../Generate/NetworkProtocol/RouteType.cs | 1 + .../Generate/NetworkProtocol/ShopMessage.cs | 12 + .../Generate/NetworkProtocol/SocialMessage.cs | 468 ++++++++++++++++++ ProjectSettings/QualitySettings.asset | 2 +- 9 files changed, 1323 insertions(+), 246 deletions(-) create mode 100644 Assets/Scripts/Generate/NetworkProtocol/ActivityMessage.cs create mode 100644 Assets/Scripts/Generate/NetworkProtocol/ChatMessage.cs create mode 100644 Assets/Scripts/Generate/NetworkProtocol/ClubMessage.cs create mode 100644 Assets/Scripts/Generate/NetworkProtocol/ShopMessage.cs create mode 100644 Assets/Scripts/Generate/NetworkProtocol/SocialMessage.cs diff --git a/Assets/Scripts/Generate/NetworkProtocol/ActivityMessage.cs b/Assets/Scripts/Generate/NetworkProtocol/ActivityMessage.cs new file mode 100644 index 000000000..b63f5ca3c --- /dev/null +++ b/Assets/Scripts/Generate/NetworkProtocol/ActivityMessage.cs @@ -0,0 +1,12 @@ +using ProtoBuf; + +using System.Collections.Generic; +using Fantasy; +using NBC; +using NBC.Network.Interface; +using NBC.Serialize; +#pragma warning disable CS8618 + +namespace NBC +{ +} diff --git a/Assets/Scripts/Generate/NetworkProtocol/ChatMessage.cs b/Assets/Scripts/Generate/NetworkProtocol/ChatMessage.cs new file mode 100644 index 000000000..4a6dde589 --- /dev/null +++ b/Assets/Scripts/Generate/NetworkProtocol/ChatMessage.cs @@ -0,0 +1,329 @@ +using ProtoBuf; + +using System.Collections.Generic; +using Fantasy; +using NBC; +using NBC.Network.Interface; +using NBC.Serialize; +#pragma warning disable CS8618 + +namespace NBC +{ + /// + /// 请求邮件列表 + /// + [ProtoContract] + public partial class C2Game_GetMailsRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2Game_GetMailsRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public Game2C_GetMailsResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2Game_GetMailsRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.GameRoute; + } + /// + /// 获取邮件列表响应 + /// + [ProtoContract] + public partial class Game2C_GetMailsResponse : AMessage, ICustomRouteResponse, IProto + { + public static Game2C_GetMailsResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + Mail.Clear(); +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Game2C_GetMailsResponse; } + [ProtoMember(1)] + public List Mail = new List(); + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } + /// + /// 新邮件推送 + /// + [ProtoContract] + public partial class Game2C_HaveMail : AMessage, ICustomRouteMessage, IProto + { + public static Game2C_HaveMail Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + Mail = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Game2C_HaveMail; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.GameRoute; + [ProtoMember(1)] + public MailInfo Mail { get; set; } + } + [ProtoContract] + public partial class Game2C_MailState : AMessage, ICustomRouteMessage, IProto + { + public static Game2C_MailState Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + MailState = default; + MailId = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Game2C_MailState; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.GameRoute; + [ProtoMember(1)] + public int MailState { get; set; } + [ProtoMember(2)] + public long MailId { get; set; } + } + /// + /// /////////// ******** 聊天 *******///////////// + /// + /// + /// 创建频道 + /// + [ProtoContract] + public partial class C2Chat_CreateChannelRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2Chat_CreateChannelRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + Name = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public Caht2C_CreateChannelResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2Chat_CreateChannelRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.ChatRoute; + [ProtoMember(1)] + public string Name { get; set; } + } + /// + /// 创建频道响应 + /// + [ProtoContract] + public partial class Caht2C_CreateChannelResponse : AMessage, ICustomRouteResponse, IProto + { + public static Caht2C_CreateChannelResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + ChannelId = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Caht2C_CreateChannelResponse; } + [ProtoMember(1)] + public long ChannelId { get; set; } + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } + /// + /// 请求进入频道 + /// + [ProtoContract] + public partial class C2Chat_JoinChannelRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2Chat_JoinChannelRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + Target = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public Caht2C_JoinChannelResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2Chat_JoinChannelRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.ChatRoute; + [ProtoMember(1)] + public long Target { get; set; } + } + /// + /// 进入频道响应 + /// + [ProtoContract] + public partial class Caht2C_JoinChannelResponse : AMessage, ICustomRouteResponse, IProto + { + public static Caht2C_JoinChannelResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Caht2C_JoinChannelResponse; } + [ProtoMember(1)] + public uint ErrorCode { get; set; } + } + /// + /// 发送聊天 + /// + [ProtoContract] + public partial class C2Chat_SendMessageRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2Chat_SendMessageRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + Type = default; + Message = default; + Target = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public Caht2C_SendMessageResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2Chat_SendMessageRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.ChatRoute; + [ProtoMember(1)] + public int Type { get; set; } + [ProtoMember(2)] + public string Message { get; set; } + [ProtoMember(3)] + public long Target { get; set; } + } + /// + /// 发送聊天响应 + /// + [ProtoContract] + public partial class Caht2C_SendMessageResponse : AMessage, ICustomRouteResponse, IProto + { + public static Caht2C_SendMessageResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Caht2C_SendMessageResponse; } + [ProtoMember(1)] + public uint ErrorCode { get; set; } + } + /// + /// 推送消息 + /// + [ProtoContract] + public partial class Chat2C_Message : AMessage, ICustomRouteMessage, IProto + { + public static Chat2C_Message Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + Message = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Chat2C_Message; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.ChatRoute; + [ProtoMember(1)] + public ChatMessageInfo Message { get; set; } + } + /// + /// 获取聊天记录请求 + /// + [ProtoContract] + public partial class C2Chat_GetChatRecordRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2Chat_GetChatRecordRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + Target = default; + Type = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public Caht2C_GetChatRecordResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2Chat_GetChatRecordRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.ChatRoute; + [ProtoMember(1)] + public long Target { get; set; } + [ProtoMember(2)] + public int Type { get; set; } + } + /// + /// 获取聊天记录响应 + /// + [ProtoContract] + public partial class Caht2C_GetChatRecordResponse : AMessage, ICustomRouteResponse, IProto + { + public static Caht2C_GetChatRecordResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + Messages.Clear(); +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Caht2C_GetChatRecordResponse; } + [ProtoMember(1)] + public List Messages = new List(); + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } +} diff --git a/Assets/Scripts/Generate/NetworkProtocol/ClubMessage.cs b/Assets/Scripts/Generate/NetworkProtocol/ClubMessage.cs new file mode 100644 index 000000000..fa41044ce --- /dev/null +++ b/Assets/Scripts/Generate/NetworkProtocol/ClubMessage.cs @@ -0,0 +1,468 @@ +using ProtoBuf; + +using System.Collections.Generic; +using Fantasy; +using NBC; +using NBC.Network.Interface; +using NBC.Serialize; +#pragma warning disable CS8618 + +namespace NBC +{ + [ProtoContract] + public partial class ClubInfo : AMessage, IProto + { + public static ClubInfo Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + Id = default; + Name = default; + CreateTime = default; + OwnerId = default; + MemberCount = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoMember(1)] + public long Id { get; set; } + [ProtoMember(2)] + public string Name { get; set; } + [ProtoMember(3)] + public long CreateTime { get; set; } + [ProtoMember(4)] + public long OwnerId { get; set; } + [ProtoMember(5)] + public int MemberCount { get; set; } + } + /// + /// 请求创建工会 + /// + [ProtoContract] + public partial class C2Club_CreateRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2Club_CreateRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + Name = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public Caht2C_GetChatRecordResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2Club_CreateRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.ClubRoute; + [ProtoMember(1)] + public string Name { get; set; } + } + /// + /// 创建工会响应 + /// + [ProtoContract] + public partial class Club2C_CreateResponse : AMessage, ICustomRouteResponse, IProto + { + public static Club2C_CreateResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + Club = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Club2C_CreateResponse; } + [ProtoMember(1)] + public ClubInfo Club { get; set; } + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } + /// + /// 请求工会信息 + /// + [ProtoContract] + public partial class C2Club_GetClubInfoRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2Club_GetClubInfoRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ClubId = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public Club2C_GetClubInfoResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2Club_GetClubInfoRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.ClubRoute; + [ProtoMember(1)] + public long ClubId { get; set; } + } + /// + /// 响应工会信息 + /// + [ProtoContract] + public partial class Club2C_GetClubInfoResponse : AMessage, ICustomRouteResponse, IProto + { + public static Club2C_GetClubInfoResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + Name = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Club2C_GetClubInfoResponse; } + [ProtoMember(1)] + public string Name { get; set; } + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } + /// + /// 请求工会成员列表 + /// + [ProtoContract] + public partial class C2Club_GetMemberListRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2Club_GetMemberListRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ClubId = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public Club2C_GetMemberListResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2Club_GetMemberListRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.ClubRoute; + [ProtoMember(1)] + public long ClubId { get; set; } + } + /// + /// 响应工会成员列表 + /// + [ProtoContract] + public partial class Club2C_GetMemberListResponse : AMessage, ICustomRouteResponse, IProto + { + public static Club2C_GetMemberListResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + Members.Clear(); +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Club2C_GetMemberListResponse; } + [ProtoMember(1)] + public List Members = new List(); + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } + /// + /// 获取工会列表请求 + /// + [ProtoContract] + public partial class C2Club_GetClubListRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2Club_GetClubListRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public Club2C_GetClubListResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2Club_GetClubListRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.ClubRoute; + } + /// + /// 获取工会列表响应 + /// + [ProtoContract] + public partial class Club2C_GetClubListResponse : AMessage, ICustomRouteResponse, IProto + { + public static Club2C_GetClubListResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + Clubs.Clear(); +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Club2C_GetClubListResponse; } + [ProtoMember(1)] + public List Clubs = new List(); + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } + /// + /// 请求加入工会 + /// + [ProtoContract] + public partial class C2Club_JoinClubRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2Club_JoinClubRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ClubId = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public Club2C_JoinClubResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2Club_JoinClubRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.ClubRoute; + [ProtoMember(1)] + public long ClubId { get; set; } + } + /// + /// 响应加入工会 + /// + [ProtoContract] + public partial class Club2C_JoinClubResponse : AMessage, ICustomRouteResponse, IProto + { + public static Club2C_JoinClubResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + Club = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Club2C_JoinClubResponse; } + [ProtoMember(1)] + public ClubInfo Club { get; set; } + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } + /// + /// 请求退出工会 + /// + [ProtoContract] + public partial class C2Club_LeaveClubRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2Club_LeaveClubRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ClubId = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public Club2C_LeaveClubResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2Club_LeaveClubRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.ClubRoute; + [ProtoMember(1)] + public long ClubId { get; set; } + } + /// + /// 响应退出工会 + /// + [ProtoContract] + public partial class Club2C_LeaveClubResponse : AMessage, ICustomRouteResponse, IProto + { + public static Club2C_LeaveClubResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + ClubId = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Club2C_LeaveClubResponse; } + [ProtoMember(1)] + public long ClubId { get; set; } + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } + /// + /// 请求解散工会 + /// + [ProtoContract] + public partial class C2Club_DissolveClubRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2Club_DissolveClubRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ClubId = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public Club2C_DissolveClubResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2Club_DissolveClubRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.ClubRoute; + [ProtoMember(1)] + public long ClubId { get; set; } + } + /// + /// 响应解散工会 + /// + [ProtoContract] + public partial class Club2C_DissolveClubResponse : AMessage, ICustomRouteResponse, IProto + { + public static Club2C_DissolveClubResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + ClubId = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Club2C_DissolveClubResponse; } + [ProtoMember(1)] + public long ClubId { get; set; } + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } + /// + /// 请求操作申请 + /// + [ProtoContract] + public partial class C2Club_DisposeJoinRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2Club_DisposeJoinRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ClubId = default; + ApplicantId = default; + Agree = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public Club2C_DisposeJoinResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2Club_DisposeJoinRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.ClubRoute; + [ProtoMember(1)] + public long ClubId { get; set; } + [ProtoMember(2)] + public long ApplicantId { get; set; } + [ProtoMember(3)] + public int Agree { get; set; } + } + /// + /// 响应操作申请 + /// + [ProtoContract] + public partial class Club2C_DisposeJoinResponse : AMessage, ICustomRouteResponse, IProto + { + public static Club2C_DisposeJoinResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + ClubId = default; + ApplicantId = default; + Agree = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Club2C_DisposeJoinResponse; } + [ProtoMember(1)] + public long ClubId { get; set; } + [ProtoMember(2)] + public long ApplicantId { get; set; } + [ProtoMember(3)] + public int Agree { get; set; } + [ProtoMember(4)] + public uint ErrorCode { get; set; } + } + /// + /// 推送消息 + /// + [ProtoContract] + public partial class Club2C_ClubChange : AMessage, ICustomRouteMessage, IProto + { + public static Club2C_ClubChange Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + Club = default; + ChangeType = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.Club2C_ClubChange; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.ClubRoute; + [ProtoMember(1)] + public ClubInfo Club { get; set; } + [ProtoMember(2)] + public int ChangeType { get; set; } + } +} diff --git a/Assets/Scripts/Generate/NetworkProtocol/OuterMessage.cs b/Assets/Scripts/Generate/NetworkProtocol/OuterMessage.cs index b2c559c57..2ac97e3b7 100644 --- a/Assets/Scripts/Generate/NetworkProtocol/OuterMessage.cs +++ b/Assets/Scripts/Generate/NetworkProtocol/OuterMessage.cs @@ -173,248 +173,15 @@ namespace NBC public override void Dispose() { ErrorCode = default; - Name = default; - RoleId = default; + Roles = default; #if FANTASY_NET || FANTASY_UNITY GetScene().MessagePoolComponent.Return(this); #endif } public uint OpCode() { return OuterOpcode.Game2C_GetRoleInfoResponse; } [ProtoMember(1)] - public string Name { get; set; } - [ProtoMember(2)] - public string RoleId { get; set; } - [ProtoMember(3)] - public uint ErrorCode { get; set; } - } - /// - /// 请求邮件列表 - /// - [ProtoContract] - public partial class C2Game_GetMailsRequest : AMessage, ICustomRouteRequest, IProto - { - public static C2Game_GetMailsRequest Create(Scene scene) - { - return scene.MessagePoolComponent.Rent(); - } - public override void Dispose() - { -#if FANTASY_NET || FANTASY_UNITY - GetScene().MessagePoolComponent.Return(this); -#endif - } - [ProtoIgnore] - public Game2C_GetMailsResponse ResponseType { get; set; } - public uint OpCode() { return OuterOpcode.C2Game_GetMailsRequest; } - [ProtoIgnore] - public int RouteType => Fantasy.RouteType.GameRoute; - } - /// - /// 获取邮件列表响应 - /// - [ProtoContract] - public partial class Game2C_GetMailsResponse : AMessage, ICustomRouteResponse, IProto - { - public static Game2C_GetMailsResponse Create(Scene scene) - { - return scene.MessagePoolComponent.Rent(); - } - public override void Dispose() - { - ErrorCode = default; - Mail.Clear(); -#if FANTASY_NET || FANTASY_UNITY - GetScene().MessagePoolComponent.Return(this); -#endif - } - public uint OpCode() { return OuterOpcode.Game2C_GetMailsResponse; } - [ProtoMember(1)] - public List Mail = new List(); + public RoleSimpleInfo Roles { get; set; } [ProtoMember(2)] public uint ErrorCode { get; set; } } - /// - /// 新邮件推送 - /// - [ProtoContract] - public partial class Game2C_HaveMail : AMessage, ICustomRouteMessage, IProto - { - public static Game2C_HaveMail Create(Scene scene) - { - return scene.MessagePoolComponent.Rent(); - } - public override void Dispose() - { - Mail = default; -#if FANTASY_NET || FANTASY_UNITY - GetScene().MessagePoolComponent.Return(this); -#endif - } - public uint OpCode() { return OuterOpcode.Game2C_HaveMail; } - [ProtoIgnore] - public int RouteType => Fantasy.RouteType.GameRoute; - [ProtoMember(1)] - public MailInfo Mail { get; set; } - } - [ProtoContract] - public partial class Game2C_MailState : AMessage, ICustomRouteMessage, IProto - { - public static Game2C_MailState Create(Scene scene) - { - return scene.MessagePoolComponent.Rent(); - } - public override void Dispose() - { - MailState = default; - MailId = default; -#if FANTASY_NET || FANTASY_UNITY - GetScene().MessagePoolComponent.Return(this); -#endif - } - public uint OpCode() { return OuterOpcode.Game2C_MailState; } - [ProtoIgnore] - public int RouteType => Fantasy.RouteType.GameRoute; - [ProtoMember(1)] - public int MailState { get; set; } - [ProtoMember(2)] - public long MailId { get; set; } - } - [ProtoContract] - public partial class C2Chat_JoinChannelRequest : AMessage, ICustomRouteRequest, IProto - { - public static C2Chat_JoinChannelRequest Create(Scene scene) - { - return scene.MessagePoolComponent.Rent(); - } - public override void Dispose() - { - Target = default; -#if FANTASY_NET || FANTASY_UNITY - GetScene().MessagePoolComponent.Return(this); -#endif - } - [ProtoIgnore] - public Caht2C_JoinChannelResponse ResponseType { get; set; } - public uint OpCode() { return OuterOpcode.C2Chat_JoinChannelRequest; } - [ProtoIgnore] - public int RouteType => Fantasy.RouteType.ChatRoute; - [ProtoMember(1)] - public long Target { get; set; } - } - /// - /// 进入频道响应 - /// - [ProtoContract] - public partial class Caht2C_JoinChannelResponse : AMessage, ICustomRouteResponse, IProto - { - public static Caht2C_JoinChannelResponse Create(Scene scene) - { - return scene.MessagePoolComponent.Rent(); - } - public override void Dispose() - { - ErrorCode = default; -#if FANTASY_NET || FANTASY_UNITY - GetScene().MessagePoolComponent.Return(this); -#endif - } - public uint OpCode() { return OuterOpcode.Caht2C_JoinChannelResponse; } - [ProtoMember(1)] - public uint ErrorCode { get; set; } - } - /// - /// 发送聊天 - /// - [ProtoContract] - public partial class C2Chat_SendMessageRequest : AMessage, ICustomRouteRequest, IProto - { - public static C2Chat_SendMessageRequest Create(Scene scene) - { - return scene.MessagePoolComponent.Rent(); - } - public override void Dispose() - { - Type = default; - Message = default; - Target = default; -#if FANTASY_NET || FANTASY_UNITY - GetScene().MessagePoolComponent.Return(this); -#endif - } - [ProtoIgnore] - public Caht2C_SendMessageResponse ResponseType { get; set; } - public uint OpCode() { return OuterOpcode.C2Chat_SendMessageRequest; } - [ProtoIgnore] - public int RouteType => Fantasy.RouteType.ChatRoute; - [ProtoMember(1)] - public int Type { get; set; } - [ProtoMember(2)] - public string Message { get; set; } - [ProtoMember(3)] - public long Target { get; set; } - } - /// - /// 发送聊天响应 - /// - [ProtoContract] - public partial class Caht2C_SendMessageResponse : AMessage, ICustomRouteResponse, IProto - { - public static Caht2C_SendMessageResponse Create(Scene scene) - { - return scene.MessagePoolComponent.Rent(); - } - public override void Dispose() - { - ErrorCode = default; -#if FANTASY_NET || FANTASY_UNITY - GetScene().MessagePoolComponent.Return(this); -#endif - } - public uint OpCode() { return OuterOpcode.Caht2C_SendMessageResponse; } - [ProtoMember(1)] - public uint ErrorCode { get; set; } - } - /// - /// 推送消息 - /// - [ProtoContract] - public partial class Chat2C_Message : AMessage, ICustomRouteMessage, IProto - { - public static Chat2C_Message Create(Scene scene) - { - return scene.MessagePoolComponent.Rent(); - } - public override void Dispose() - { - Message = default; -#if FANTASY_NET || FANTASY_UNITY - GetScene().MessagePoolComponent.Return(this); -#endif - } - public uint OpCode() { return OuterOpcode.Chat2C_Message; } - [ProtoIgnore] - public int RouteType => Fantasy.RouteType.ChatRoute; - [ProtoMember(1)] - public ChatMessageInfo Message { get; set; } - } - [ProtoContract] - public partial class C2G_LoginRequest1 : AMessage, IRequest, IProto - { - public static C2G_LoginRequest1 Create(Scene scene) - { - return scene.MessagePoolComponent.Rent(); - } - public override void Dispose() - { - ToKen = default; -#if FANTASY_NET || FANTASY_UNITY - GetScene().MessagePoolComponent.Return(this); -#endif - } - [ProtoIgnore] - public G2C_LoginResponse ResponseType { get; set; } - public uint OpCode() { return OuterOpcode.C2G_LoginRequest1; } - [ProtoMember(1)] - public string ToKen { get; set; } - } } diff --git a/Assets/Scripts/Generate/NetworkProtocol/OuterOpcode.cs b/Assets/Scripts/Generate/NetworkProtocol/OuterOpcode.cs index 62a9e0ed6..cdfadff07 100644 --- a/Assets/Scripts/Generate/NetworkProtocol/OuterOpcode.cs +++ b/Assets/Scripts/Generate/NetworkProtocol/OuterOpcode.cs @@ -2,22 +2,42 @@ namespace Fantasy { public static partial class OuterOpcode { - public const uint C2A_LoginRequest = 268445457; - public const uint A2C_LoginResponse = 402663185; - public const uint C2G_LoginRequest = 268445458; - public const uint G2C_LoginResponse = 402663186; - public const uint G2C_RepeatLogin = 134227729; - public const uint C2Game_GetRoleInfoRequest = 2281711377; - public const uint Game2C_GetRoleInfoResponse = 2415929105; - public const uint C2Game_GetMailsRequest = 2281711378; - public const uint Game2C_GetMailsResponse = 2415929106; + public const uint C2Game_GetMailsRequest = 2281711377; + public const uint Game2C_GetMailsResponse = 2415929105; public const uint Game2C_HaveMail = 2147493649; public const uint Game2C_MailState = 2147493650; + public const uint C2Chat_CreateChannelRequest = 2281711378; + public const uint Caht2C_CreateChannelResponse = 2415929106; public const uint C2Chat_JoinChannelRequest = 2281711379; public const uint Caht2C_JoinChannelResponse = 2415929107; public const uint C2Chat_SendMessageRequest = 2281711380; public const uint Caht2C_SendMessageResponse = 2415929108; public const uint Chat2C_Message = 2147493651; - public const uint C2G_LoginRequest1 = 268445459; + public const uint C2Chat_GetChatRecordRequest = 2281711381; + public const uint Caht2C_GetChatRecordResponse = 2415929109; + public const uint C2A_LoginRequest = 268445457; + public const uint A2C_LoginResponse = 402663185; + public const uint C2G_LoginRequest = 268445458; + public const uint G2C_LoginResponse = 402663186; + public const uint G2C_RepeatLogin = 134227729; + public const uint C2Game_GetRoleInfoRequest = 2281711382; + public const uint Game2C_GetRoleInfoResponse = 2415929110; + public const uint C2S_CreateRequest = 2281711383; + public const uint S2C_CreateResponse = 2415929111; + public const uint C2S_GetClubInfoRequest = 2281711384; + public const uint S2C_GetClubInfoResponse = 2415929112; + public const uint C2S_GetMemberListRequest = 2281711385; + public const uint S2C_GetMemberListResponse = 2415929113; + public const uint C2S_GetClubListRequest = 2281711386; + public const uint S2C_GetClubListResponse = 2415929114; + public const uint C2S_JoinClubRequest = 2281711387; + public const uint S2C_JoinClubResponse = 2415929115; + public const uint C2S_LeaveClubRequest = 2281711388; + public const uint S2C_LeaveClubResponse = 2415929116; + public const uint C2S_DissolveClubRequest = 2281711389; + public const uint S2C_DissolveClubResponse = 2415929117; + public const uint C2S_DisposeJoinRequest = 2281711390; + public const uint S2C_DisposeJoinResponse = 2415929118; + public const uint S2C_ClubChange = 2147493652; } } diff --git a/Assets/Scripts/Generate/NetworkProtocol/RouteType.cs b/Assets/Scripts/Generate/NetworkProtocol/RouteType.cs index 8bd8a52a2..ff44fc502 100644 --- a/Assets/Scripts/Generate/NetworkProtocol/RouteType.cs +++ b/Assets/Scripts/Generate/NetworkProtocol/RouteType.cs @@ -6,5 +6,6 @@ namespace Fantasy public const int GateRoute = 1001; // Gate public const int ChatRoute = 1002; // Chat public const int GameRoute = 1003; // Game + public const int SocialRoute = 1004; // Social } } diff --git a/Assets/Scripts/Generate/NetworkProtocol/ShopMessage.cs b/Assets/Scripts/Generate/NetworkProtocol/ShopMessage.cs new file mode 100644 index 000000000..b63f5ca3c --- /dev/null +++ b/Assets/Scripts/Generate/NetworkProtocol/ShopMessage.cs @@ -0,0 +1,12 @@ +using ProtoBuf; + +using System.Collections.Generic; +using Fantasy; +using NBC; +using NBC.Network.Interface; +using NBC.Serialize; +#pragma warning disable CS8618 + +namespace NBC +{ +} diff --git a/Assets/Scripts/Generate/NetworkProtocol/SocialMessage.cs b/Assets/Scripts/Generate/NetworkProtocol/SocialMessage.cs new file mode 100644 index 000000000..1e31a5f98 --- /dev/null +++ b/Assets/Scripts/Generate/NetworkProtocol/SocialMessage.cs @@ -0,0 +1,468 @@ +using ProtoBuf; + +using System.Collections.Generic; +using Fantasy; +using NBC; +using NBC.Network.Interface; +using NBC.Serialize; +#pragma warning disable CS8618 + +namespace NBC +{ + [ProtoContract] + public partial class ClubInfo : AMessage, IProto + { + public static ClubInfo Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + Id = default; + Name = default; + CreateTime = default; + OwnerId = default; + MemberCount = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoMember(1)] + public long Id { get; set; } + [ProtoMember(2)] + public string Name { get; set; } + [ProtoMember(3)] + public long CreateTime { get; set; } + [ProtoMember(4)] + public long OwnerId { get; set; } + [ProtoMember(5)] + public int MemberCount { get; set; } + } + /// + /// 请求创建工会 + /// + [ProtoContract] + public partial class C2S_CreateRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2S_CreateRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + Name = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public Caht2C_GetChatRecordResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2S_CreateRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.SocialRoute; + [ProtoMember(1)] + public string Name { get; set; } + } + /// + /// 创建工会响应 + /// + [ProtoContract] + public partial class S2C_CreateResponse : AMessage, ICustomRouteResponse, IProto + { + public static S2C_CreateResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + Club = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.S2C_CreateResponse; } + [ProtoMember(1)] + public ClubInfo Club { get; set; } + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } + /// + /// 请求工会信息 + /// + [ProtoContract] + public partial class C2S_GetClubInfoRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2S_GetClubInfoRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ClubId = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public S2C_GetClubInfoResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2S_GetClubInfoRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.SocialRoute; + [ProtoMember(1)] + public long ClubId { get; set; } + } + /// + /// 响应工会信息 + /// + [ProtoContract] + public partial class S2C_GetClubInfoResponse : AMessage, ICustomRouteResponse, IProto + { + public static S2C_GetClubInfoResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + Name = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.S2C_GetClubInfoResponse; } + [ProtoMember(1)] + public string Name { get; set; } + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } + /// + /// 请求工会成员列表 + /// + [ProtoContract] + public partial class C2S_GetMemberListRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2S_GetMemberListRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ClubId = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public S2C_GetMemberListResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2S_GetMemberListRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.SocialRoute; + [ProtoMember(1)] + public long ClubId { get; set; } + } + /// + /// 响应工会成员列表 + /// + [ProtoContract] + public partial class S2C_GetMemberListResponse : AMessage, ICustomRouteResponse, IProto + { + public static S2C_GetMemberListResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + Members.Clear(); +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.S2C_GetMemberListResponse; } + [ProtoMember(1)] + public List Members = new List(); + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } + /// + /// 获取工会列表请求 + /// + [ProtoContract] + public partial class C2S_GetClubListRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2S_GetClubListRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public S2C_GetClubListResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2S_GetClubListRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.SocialRoute; + } + /// + /// 获取工会列表响应 + /// + [ProtoContract] + public partial class S2C_GetClubListResponse : AMessage, ICustomRouteResponse, IProto + { + public static S2C_GetClubListResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + Clubs.Clear(); +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.S2C_GetClubListResponse; } + [ProtoMember(1)] + public List Clubs = new List(); + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } + /// + /// 请求加入工会 + /// + [ProtoContract] + public partial class C2S_JoinClubRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2S_JoinClubRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ClubId = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public S2C_JoinClubResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2S_JoinClubRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.SocialRoute; + [ProtoMember(1)] + public long ClubId { get; set; } + } + /// + /// 响应加入工会 + /// + [ProtoContract] + public partial class S2C_JoinClubResponse : AMessage, ICustomRouteResponse, IProto + { + public static S2C_JoinClubResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + Club = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.S2C_JoinClubResponse; } + [ProtoMember(1)] + public ClubInfo Club { get; set; } + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } + /// + /// 请求退出工会 + /// + [ProtoContract] + public partial class C2S_LeaveClubRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2S_LeaveClubRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ClubId = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public S2C_LeaveClubResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2S_LeaveClubRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.SocialRoute; + [ProtoMember(1)] + public long ClubId { get; set; } + } + /// + /// 响应退出工会 + /// + [ProtoContract] + public partial class S2C_LeaveClubResponse : AMessage, ICustomRouteResponse, IProto + { + public static S2C_LeaveClubResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + ClubId = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.S2C_LeaveClubResponse; } + [ProtoMember(1)] + public long ClubId { get; set; } + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } + /// + /// 请求解散工会 + /// + [ProtoContract] + public partial class C2S_DissolveClubRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2S_DissolveClubRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ClubId = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public S2C_DissolveClubResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2S_DissolveClubRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.SocialRoute; + [ProtoMember(1)] + public long ClubId { get; set; } + } + /// + /// 响应解散工会 + /// + [ProtoContract] + public partial class S2C_DissolveClubResponse : AMessage, ICustomRouteResponse, IProto + { + public static S2C_DissolveClubResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + ClubId = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.S2C_DissolveClubResponse; } + [ProtoMember(1)] + public long ClubId { get; set; } + [ProtoMember(2)] + public uint ErrorCode { get; set; } + } + /// + /// 请求操作申请 + /// + [ProtoContract] + public partial class C2S_DisposeJoinRequest : AMessage, ICustomRouteRequest, IProto + { + public static C2S_DisposeJoinRequest Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ClubId = default; + ApplicantId = default; + Agree = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + [ProtoIgnore] + public S2C_DisposeJoinResponse ResponseType { get; set; } + public uint OpCode() { return OuterOpcode.C2S_DisposeJoinRequest; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.SocialRoute; + [ProtoMember(1)] + public long ClubId { get; set; } + [ProtoMember(2)] + public long ApplicantId { get; set; } + [ProtoMember(3)] + public int Agree { get; set; } + } + /// + /// 响应操作申请 + /// + [ProtoContract] + public partial class S2C_DisposeJoinResponse : AMessage, ICustomRouteResponse, IProto + { + public static S2C_DisposeJoinResponse Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + ErrorCode = default; + ClubId = default; + ApplicantId = default; + Agree = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.S2C_DisposeJoinResponse; } + [ProtoMember(1)] + public long ClubId { get; set; } + [ProtoMember(2)] + public long ApplicantId { get; set; } + [ProtoMember(3)] + public int Agree { get; set; } + [ProtoMember(4)] + public uint ErrorCode { get; set; } + } + /// + /// 推送消息 + /// + [ProtoContract] + public partial class S2C_ClubChange : AMessage, ICustomRouteMessage, IProto + { + public static S2C_ClubChange Create(Scene scene) + { + return scene.MessagePoolComponent.Rent(); + } + public override void Dispose() + { + Club = default; + ChangeType = default; +#if FANTASY_NET || FANTASY_UNITY + GetScene().MessagePoolComponent.Return(this); +#endif + } + public uint OpCode() { return OuterOpcode.S2C_ClubChange; } + [ProtoIgnore] + public int RouteType => Fantasy.RouteType.SocialRoute; + [ProtoMember(1)] + public ClubInfo Club { get; set; } + [ProtoMember(2)] + public int ChangeType { get; set; } + } +} diff --git a/ProjectSettings/QualitySettings.asset b/ProjectSettings/QualitySettings.asset index cf72c0c88..728450c56 100644 --- a/ProjectSettings/QualitySettings.asset +++ b/ProjectSettings/QualitySettings.asset @@ -76,7 +76,7 @@ QualitySettings: globalTextureMipmapLimit: 0 textureMipmapLimitSettings: [] anisotropicTextures: 2 - antiAliasing: 8 + antiAliasing: 2 softParticles: 0 softVegetation: 1 realtimeReflectionProbes: 1