协议更新
This commit is contained in:
@@ -42,22 +42,22 @@ namespace NBC
|
||||
/// 请求创建工会
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2S_CreateRequest : AMessage, ICustomRouteRequest, IProto
|
||||
public partial class C2S_CreateClubRequest : AMessage, ICustomRouteRequest, IProto
|
||||
{
|
||||
public static C2S_CreateRequest Create(Scene scene)
|
||||
public static C2S_CreateClubRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2S_CreateRequest>();
|
||||
return scene.MessagePoolComponent.Rent<C2S_CreateClubRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Name = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2S_CreateRequest>(this);
|
||||
GetScene().MessagePoolComponent.Return<C2S_CreateClubRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public Caht2C_GetChatRecordResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2S_CreateRequest; }
|
||||
public S2C_CreateClubResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2S_CreateClubRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
@@ -67,21 +67,21 @@ namespace NBC
|
||||
/// 创建工会响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_CreateResponse : AMessage, ICustomRouteResponse, IProto
|
||||
public partial class S2C_CreateClubResponse : AMessage, ICustomRouteResponse, IProto
|
||||
{
|
||||
public static S2C_CreateResponse Create(Scene scene)
|
||||
public static S2C_CreateClubResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_CreateResponse>();
|
||||
return scene.MessagePoolComponent.Rent<S2C_CreateClubResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
Club = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_CreateResponse>(this);
|
||||
GetScene().MessagePoolComponent.Return<S2C_CreateClubResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_CreateResponse; }
|
||||
public uint OpCode() { return OuterOpcode.S2C_CreateClubResponse; }
|
||||
[ProtoMember(1)]
|
||||
public ClubInfo Club { get; set; }
|
||||
[ProtoMember(2)]
|
||||
|
||||
Reference in New Issue
Block a user