协议定义

This commit is contained in:
bob
2025-08-12 17:28:22 +08:00
parent 15723850c0
commit f8b876ca2f
19 changed files with 1150 additions and 329 deletions

View File

@@ -132,4 +132,25 @@ namespace Fantasy
[ProtoMember(1)]
public ChatMessageInfo Message { get; set; }
}
/// <summary>
/// 创建聊天频道
/// </summary>
[ProtoContract]
public partial class Club2Chat_CreateChannel : AMessage, IRouteMessage, IProto
{
public static Club2Chat_CreateChannel Create(Scene scene)
{
return scene.MessagePoolComponent.Rent<Club2Chat_CreateChannel>();
}
public override void Dispose()
{
ChannelId = default;
#if FANTASY_NET || FANTASY_UNITY
GetScene().MessagePoolComponent.Return<Club2Chat_CreateChannel>(this);
#endif
}
public uint OpCode() { return InnerOpcode.Club2Chat_CreateChannel; }
[ProtoMember(1)]
public long ChannelId { get; set; }
}
}