469 lines
13 KiB
C#
469 lines
13 KiB
C#
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<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 C2Club_CreateRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2Club_CreateRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2Club_CreateRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
Name = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2Club_CreateRequest>(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; }
|
|
}
|
|
/// <summary>
|
|
/// 创建工会响应
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class Club2C_CreateResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static Club2C_CreateResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<Club2C_CreateResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
Club = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<Club2C_CreateResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.Club2C_CreateResponse; }
|
|
[ProtoMember(1)]
|
|
public ClubInfo Club { get; set; }
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 请求工会信息
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2Club_GetClubInfoRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2Club_GetClubInfoRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2Club_GetClubInfoRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ClubId = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2Club_GetClubInfoRequest>(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; }
|
|
}
|
|
/// <summary>
|
|
/// 响应工会信息
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class Club2C_GetClubInfoResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static Club2C_GetClubInfoResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<Club2C_GetClubInfoResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
Name = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<Club2C_GetClubInfoResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.Club2C_GetClubInfoResponse; }
|
|
[ProtoMember(1)]
|
|
public string Name { get; set; }
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 请求工会成员列表
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2Club_GetMemberListRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2Club_GetMemberListRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2Club_GetMemberListRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ClubId = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2Club_GetMemberListRequest>(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; }
|
|
}
|
|
/// <summary>
|
|
/// 响应工会成员列表
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class Club2C_GetMemberListResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static Club2C_GetMemberListResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<Club2C_GetMemberListResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
Members.Clear();
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<Club2C_GetMemberListResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.Club2C_GetMemberListResponse; }
|
|
[ProtoMember(1)]
|
|
public List<RoleSimpleInfo> Members = new List<RoleSimpleInfo>();
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 获取工会列表请求
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2Club_GetClubListRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2Club_GetClubListRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2Club_GetClubListRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2Club_GetClubListRequest>(this);
|
|
#endif
|
|
}
|
|
[ProtoIgnore]
|
|
public Club2C_GetClubListResponse ResponseType { get; set; }
|
|
public uint OpCode() { return OuterOpcode.C2Club_GetClubListRequest; }
|
|
[ProtoIgnore]
|
|
public int RouteType => Fantasy.RouteType.ClubRoute;
|
|
}
|
|
/// <summary>
|
|
/// 获取工会列表响应
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class Club2C_GetClubListResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static Club2C_GetClubListResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<Club2C_GetClubListResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
Clubs.Clear();
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<Club2C_GetClubListResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.Club2C_GetClubListResponse; }
|
|
[ProtoMember(1)]
|
|
public List<ClubInfo> Clubs = new List<ClubInfo>();
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 请求加入工会
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2Club_JoinClubRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2Club_JoinClubRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2Club_JoinClubRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ClubId = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2Club_JoinClubRequest>(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; }
|
|
}
|
|
/// <summary>
|
|
/// 响应加入工会
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class Club2C_JoinClubResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static Club2C_JoinClubResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<Club2C_JoinClubResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
Club = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<Club2C_JoinClubResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.Club2C_JoinClubResponse; }
|
|
[ProtoMember(1)]
|
|
public ClubInfo Club { get; set; }
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 请求退出工会
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2Club_LeaveClubRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2Club_LeaveClubRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2Club_LeaveClubRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ClubId = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2Club_LeaveClubRequest>(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; }
|
|
}
|
|
/// <summary>
|
|
/// 响应退出工会
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class Club2C_LeaveClubResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static Club2C_LeaveClubResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<Club2C_LeaveClubResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
ClubId = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<Club2C_LeaveClubResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.Club2C_LeaveClubResponse; }
|
|
[ProtoMember(1)]
|
|
public long ClubId { get; set; }
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 请求解散工会
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2Club_DissolveClubRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2Club_DissolveClubRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2Club_DissolveClubRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ClubId = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2Club_DissolveClubRequest>(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; }
|
|
}
|
|
/// <summary>
|
|
/// 响应解散工会
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class Club2C_DissolveClubResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static Club2C_DissolveClubResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<Club2C_DissolveClubResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
ClubId = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<Club2C_DissolveClubResponse>(this);
|
|
#endif
|
|
}
|
|
public uint OpCode() { return OuterOpcode.Club2C_DissolveClubResponse; }
|
|
[ProtoMember(1)]
|
|
public long ClubId { get; set; }
|
|
[ProtoMember(2)]
|
|
public uint ErrorCode { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 请求操作申请
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class C2Club_DisposeJoinRequest : AMessage, ICustomRouteRequest, IProto
|
|
{
|
|
public static C2Club_DisposeJoinRequest Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<C2Club_DisposeJoinRequest>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ClubId = default;
|
|
ApplicantId = default;
|
|
Agree = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<C2Club_DisposeJoinRequest>(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; }
|
|
}
|
|
/// <summary>
|
|
/// 响应操作申请
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class Club2C_DisposeJoinResponse : AMessage, ICustomRouteResponse, IProto
|
|
{
|
|
public static Club2C_DisposeJoinResponse Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<Club2C_DisposeJoinResponse>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
ErrorCode = default;
|
|
ClubId = default;
|
|
ApplicantId = default;
|
|
Agree = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<Club2C_DisposeJoinResponse>(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; }
|
|
}
|
|
/// <summary>
|
|
/// 推送消息
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public partial class Club2C_ClubChange : AMessage, ICustomRouteMessage, IProto
|
|
{
|
|
public static Club2C_ClubChange Create(Scene scene)
|
|
{
|
|
return scene.MessagePoolComponent.Rent<Club2C_ClubChange>();
|
|
}
|
|
public override void Dispose()
|
|
{
|
|
Club = default;
|
|
ChangeType = default;
|
|
#if FANTASY_NET || FANTASY_UNITY
|
|
GetScene().MessagePoolComponent.Return<Club2C_ClubChange>(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; }
|
|
}
|
|
}
|