协议修改
This commit is contained in:
@@ -104,6 +104,50 @@ namespace NBC
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 客户端登陆聊天服
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2G_LoginChatRequest : AMessage, IProto
|
||||
{
|
||||
public static C2G_LoginChatRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2G_LoginChatRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Type = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2G_LoginChatRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public int Type { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 客户端登陆聊天服响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class G2C_LoginChatResponse : AMessage, IResponse, IProto
|
||||
{
|
||||
public static G2C_LoginChatResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<G2C_LoginChatResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
RouteId = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<G2C_LoginChatResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.G2C_LoginChatResponse; }
|
||||
[ProtoMember(1)]
|
||||
public long RouteId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 通知客户端重复登录
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
|
||||
Reference in New Issue
Block a user