协议修改

This commit is contained in:
2025-08-26 18:04:07 +08:00
parent 110daec6ea
commit 50bcc2c497
13 changed files with 768 additions and 577 deletions

View File

@@ -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]