904 lines
26 KiB
C#
904 lines
26 KiB
C#
using ProtoBuf;
|
|
|
|
using System.Collections.Generic;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
using Fantasy;
|
|
using Fantasy.Network.Interface;
|
|
using Fantasy.Serialize;
|
|
// ReSharper disable InconsistentNaming
|
|
// ReSharper disable RedundantUsingDirective
|
|
// ReSharper disable RedundantOverriddenMember
|
|
// ReSharper disable PartialTypeWithSinglePart
|
|
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
|
// ReSharper disable MemberCanBePrivate.Global
|
|
// ReSharper disable CheckNamespace
|
|
#pragma warning disable CS8625 // Cannot convert null literal to non-nullable reference type.
|
|
#pragma warning disable CS8618
|
|
|
|
namespace Fantasy
|
|
{
|
|
/// <summary>
|
|
/// /////////// ******** 邮件 *******/////////////
|
|
/// </summary>
|
|
/// <summary>
|
|
/// 请求邮件列表
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2Game_GetMailsRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2Game_GetMailsRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2Game_GetMailsRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2Game_GetMailsRequest>(this);
|
|
#endif
|
|
}
|
|
[ProtoIgnore]
|
|
public Game2C_GetMailsResponse ResponseType { get; set; }
|
|
public uint OpCode() { return OuterOpcode.C2Game_GetMailsRequest; }
|
|
[ProtoIgnore]
|
|
public int RouteType => Fantasy.RouteType.GameRoute;
|
|
}
|
|
/// <summary>
|
|
/// 获取邮件列表响应
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class Game2C_GetMailsResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static Game2C_GetMailsResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<Game2C_GetMailsResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
Mail.Clear();
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<Game2C_GetMailsResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.Game2C_GetMailsResponse; }
|
|
[ProtoMember(1)]
|
|
public List<MailInfo> Mail = new List<MailInfo>();
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 新邮件推送
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class Game2C_HaveMail : AMessage, ICustomRouteMessage, IProto
|
|
{
|
|
public static Game2C_HaveMail Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<Game2C_HaveMail>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
Mail = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<Game2C_HaveMail>(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<Game2C_MailState>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
MailState = default;
|
|
MailId = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<Game2C_MailState>(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; }
|
|
}
|
|
/// <summary>
|
|
/// /////////// ******** 聊天 *******/////////////
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class ChatUserInfo : AMessage, IProto
|
|
{
|
|
public static ChatUserInfo Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<ChatUserInfo>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
Id = default;
|
|
Name = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<ChatUserInfo>(this);
|
|
#endif
|
|
}
|
|
[ProtoMember(1)]
|
|
public long Id { get; set; }
|
|
[ProtoMember(2)]
|
|
public long Name { get; set; }
|
|
}
|
|
[ProtoContract]
|
|
public partial class ChatMessageInfo : AMessage, IProto
|
|
{
|
|
public static ChatMessageInfo Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<ChatMessageInfo>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
Type = default;
|
|
Source = default;
|
|
Trigger = default;
|
|
Content = default;
|
|
SendTime = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<ChatMessageInfo>(this);
|
|
#endif
|
|
}
|
|
[ProtoMember(1)]
|
|
public int Type { get; set; }
|
|
[ProtoMember(2)]
|
|
public long Source { get; set; }
|
|
[ProtoMember(3)]
|
|
public ChatUserInfo Trigger { get; set; }
|
|
[ProtoMember(4)]
|
|
public string Content { get; set; }
|
|
[ProtoMember(5)]
|
|
public long SendTime { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 创建频道
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2S_CreateChannelRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2S_CreateChannelRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2S_CreateChannelRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
Name = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2S_CreateChannelRequest>(this);
|
|
#endif
|
|
}
|
|
[ProtoIgnore]
|
|
public S2C_CreateChannelResponse ResponseType { get; set; }
|
|
public uint OpCode() { return OuterOpcode.C2S_CreateChannelRequest; }
|
|
[ProtoIgnore]
|
|
public int RouteType => Fantasy.RouteType.SocialRoute;
|
|
[ProtoMember(1)]
|
|
public string Name { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 创建频道响应
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class S2C_CreateChannelResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static S2C_CreateChannelResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<S2C_CreateChannelResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
ChannelId = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<S2C_CreateChannelResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.S2C_CreateChannelResponse; }
|
|
[ProtoMember(1)]
|
|
public long ChannelId { get; set; }
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 请求进入频道
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2S_JoinChannelRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2S_JoinChannelRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2S_JoinChannelRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
Target = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2S_JoinChannelRequest>(this);
|
|
#endif
|
|
}
|
|
[ProtoIgnore]
|
|
public S2C_JoinChannelResponse ResponseType { get; set; }
|
|
public uint OpCode() { return OuterOpcode.C2S_JoinChannelRequest; }
|
|
[ProtoIgnore]
|
|
public int RouteType => Fantasy.RouteType.SocialRoute;
|
|
[ProtoMember(1)]
|
|
public long Target { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 进入频道响应
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class S2C_JoinChannelResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static S2C_JoinChannelResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<S2C_JoinChannelResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<S2C_JoinChannelResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.S2C_JoinChannelResponse; }
|
|
[ProtoMember(1)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 发送聊天
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2S_SendMessageRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2S_SendMessageRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2S_SendMessageRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
Type = default;
|
|
Message = default;
|
|
Target = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2S_SendMessageRequest>(this);
|
|
#endif
|
|
}
|
|
[ProtoIgnore]
|
|
public S2C_SendMessageResponse ResponseType { get; set; }
|
|
public uint OpCode() { return OuterOpcode.C2S_SendMessageRequest; }
|
|
[ProtoIgnore]
|
|
public int RouteType => Fantasy.RouteType.SocialRoute;
|
|
[ProtoMember(1)]
|
|
public int Type { get; set; }
|
|
[ProtoMember(2)]
|
|
public string Message { get; set; }
|
|
[ProtoMember(3)]
|
|
public long Target { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 发送聊天响应
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class S2C_SendMessageResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static S2C_SendMessageResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<S2C_SendMessageResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<S2C_SendMessageResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.S2C_SendMessageResponse; }
|
|
[ProtoMember(1)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 发送聊天
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2S_GetOfflineMessageRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2S_GetOfflineMessageRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2S_GetOfflineMessageRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
Type = default;
|
|
Message = default;
|
|
Target = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2S_GetOfflineMessageRequest>(this);
|
|
#endif
|
|
}
|
|
[ProtoIgnore]
|
|
public S2C_GetOfflineMessageResponse ResponseType { get; set; }
|
|
public uint OpCode() { return OuterOpcode.C2S_GetOfflineMessageRequest; }
|
|
[ProtoIgnore]
|
|
public int RouteType => Fantasy.RouteType.SocialRoute;
|
|
[ProtoMember(1)]
|
|
public int Type { get; set; }
|
|
[ProtoMember(2)]
|
|
public string Message { get; set; }
|
|
[ProtoMember(3)]
|
|
public long Target { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 发送聊天响应
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class S2C_GetOfflineMessageResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static S2C_GetOfflineMessageResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<S2C_GetOfflineMessageResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
Message.Clear();
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<S2C_GetOfflineMessageResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.S2C_GetOfflineMessageResponse; }
|
|
[ProtoMember(1)]
|
|
public List<ChatMessageInfo> Message = new List<ChatMessageInfo>();
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 推送消息
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class S2C_Message : AMessage, ICustomRouteMessage, IProto
|
|
{
|
|
public static S2C_Message Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<S2C_Message>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
Message = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<S2C_Message>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.S2C_Message; }
|
|
[ProtoIgnore]
|
|
public int RouteType => Fantasy.RouteType.SocialRoute;
|
|
[ProtoMember(1)]
|
|
public ChatMessageInfo Message { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 获取聊天记录请求
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2S_GetChatRecordRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2S_GetChatRecordRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2S_GetChatRecordRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
Target = default;
|
|
Type = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2S_GetChatRecordRequest>(this);
|
|
#endif
|
|
}
|
|
[ProtoIgnore]
|
|
public S2C_GetChatRecordResponse ResponseType { get; set; }
|
|
public uint OpCode() { return OuterOpcode.C2S_GetChatRecordRequest; }
|
|
[ProtoIgnore]
|
|
public int RouteType => Fantasy.RouteType.SocialRoute;
|
|
[ProtoMember(1)]
|
|
public long Target { get; set; }
|
|
[ProtoMember(2)]
|
|
public int Type { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 获取聊天记录响应
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class S2C_GetChatRecordResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static S2C_GetChatRecordResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<S2C_GetChatRecordResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
Messages.Clear();
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<S2C_GetChatRecordResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.S2C_GetChatRecordResponse; }
|
|
[ProtoMember(1)]
|
|
public List<ChatMessageInfo> Messages = new List<ChatMessageInfo>();
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// /////////// ******** 工会 *******/////////////
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class ClubInfo : AMessage, IProto
|
|
{
|
|
public static ClubInfo Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<ClubInfo>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
Id = default;
|
|
Name = default;
|
|
CreateTime = default;
|
|
OwnerId = default;
|
|
MemberCount = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<ClubInfo>(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; }
|
|
}
|
|
/// <summary>
|
|
/// 请求创建工会
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2S_CreateClubRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2S_CreateClubRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2S_CreateClubRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
Name = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2S_CreateClubRequest>(this);
|
|
#endif
|
|
}
|
|
[ProtoIgnore]
|
|
public S2C_CreateClubResponse ResponseType { get; set; }
|
|
public uint OpCode() { return OuterOpcode.C2S_CreateClubRequest; }
|
|
[ProtoIgnore]
|
|
public int RouteType => Fantasy.RouteType.SocialRoute;
|
|
[ProtoMember(1)]
|
|
public string Name { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 创建工会响应
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class S2C_CreateClubResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static S2C_CreateClubResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<S2C_CreateClubResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
Club = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<S2C_CreateClubResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.S2C_CreateClubResponse; }
|
|
[ProtoMember(1)]
|
|
public ClubInfo Club { get; set; }
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 请求工会信息
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2S_GetClubInfoRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2S_GetClubInfoRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2S_GetClubInfoRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ClubId = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2S_GetClubInfoRequest>(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; }
|
|
}
|
|
/// <summary>
|
|
/// 响应工会信息
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class S2C_GetClubInfoResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static S2C_GetClubInfoResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<S2C_GetClubInfoResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
Name = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<S2C_GetClubInfoResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.S2C_GetClubInfoResponse; }
|
|
[ProtoMember(1)]
|
|
public string Name { get; set; }
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 请求工会成员列表
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2S_GetMemberListRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2S_GetMemberListRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2S_GetMemberListRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ClubId = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2S_GetMemberListRequest>(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; }
|
|
}
|
|
/// <summary>
|
|
/// 响应工会成员列表
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class S2C_GetMemberListResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static S2C_GetMemberListResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<S2C_GetMemberListResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
Members.Clear();
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<S2C_GetMemberListResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.S2C_GetMemberListResponse; }
|
|
[ProtoMember(1)]
|
|
public List<RoleSimpleInfo> Members = new List<RoleSimpleInfo>();
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 获取工会列表请求
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2S_GetClubListRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2S_GetClubListRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2S_GetClubListRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2S_GetClubListRequest>(this);
|
|
#endif
|
|
}
|
|
[ProtoIgnore]
|
|
public S2C_GetClubListResponse ResponseType { get; set; }
|
|
public uint OpCode() { return OuterOpcode.C2S_GetClubListRequest; }
|
|
[ProtoIgnore]
|
|
public int RouteType => Fantasy.RouteType.SocialRoute;
|
|
}
|
|
/// <summary>
|
|
/// 获取工会列表响应
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class S2C_GetClubListResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static S2C_GetClubListResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<S2C_GetClubListResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
Clubs.Clear();
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<S2C_GetClubListResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.S2C_GetClubListResponse; }
|
|
[ProtoMember(1)]
|
|
public List<ClubInfo> Clubs = new List<ClubInfo>();
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 请求加入工会
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2S_JoinClubRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2S_JoinClubRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2S_JoinClubRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ClubId = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2S_JoinClubRequest>(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; }
|
|
}
|
|
/// <summary>
|
|
/// 响应加入工会
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class S2C_JoinClubResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static S2C_JoinClubResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<S2C_JoinClubResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
Club = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<S2C_JoinClubResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.S2C_JoinClubResponse; }
|
|
[ProtoMember(1)]
|
|
public ClubInfo Club { get; set; }
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 请求退出工会
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2S_LeaveClubRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2S_LeaveClubRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2S_LeaveClubRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ClubId = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2S_LeaveClubRequest>(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; }
|
|
}
|
|
/// <summary>
|
|
/// 响应退出工会
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class S2C_LeaveClubResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static S2C_LeaveClubResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<S2C_LeaveClubResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
ClubId = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<S2C_LeaveClubResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.S2C_LeaveClubResponse; }
|
|
[ProtoMember(1)]
|
|
public long ClubId { get; set; }
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 请求解散工会
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2S_DissolveClubRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2S_DissolveClubRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2S_DissolveClubRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ClubId = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2S_DissolveClubRequest>(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; }
|
|
}
|
|
/// <summary>
|
|
/// 响应解散工会
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class S2C_DissolveClubResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static S2C_DissolveClubResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<S2C_DissolveClubResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
ClubId = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<S2C_DissolveClubResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.S2C_DissolveClubResponse; }
|
|
[ProtoMember(1)]
|
|
public long ClubId { get; set; }
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 请求操作申请
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2S_DisposeJoinRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2S_DisposeJoinRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2S_DisposeJoinRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ClubId = default;
|
|
ApplicantId = default;
|
|
Agree = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2S_DisposeJoinRequest>(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; }
|
|
}
|
|
/// <summary>
|
|
/// 响应操作申请
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class S2C_DisposeJoinResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static S2C_DisposeJoinResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<S2C_DisposeJoinResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
ClubId = default;
|
|
ApplicantId = default;
|
|
Agree = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<S2C_DisposeJoinResponse>(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; }
|
|
}
|
|
/// <summary>
|
|
/// 推送消息
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class S2C_ClubChange : AMessage, ICustomRouteMessage, IProto
|
|
{
|
|
public static S2C_ClubChange Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<S2C_ClubChange>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
Club = default;
|
|
ChangeType = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<S2C_ClubChange>(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; }
|
|
}
|
|
}
|