协议定义
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user