聊天频道

This commit is contained in:
2025-08-08 09:13:09 +08:00
parent e1a4db89ae
commit 61496d4616
11 changed files with 190 additions and 6 deletions

View File

@@ -299,7 +299,9 @@ namespace Fantasy
}
public override void Dispose()
{
Type = default;
Message = default;
Target = default;
#if FANTASY_NET || FANTASY_UNITY
GetScene().MessagePoolComponent.Return<C2Chat_SendMessageRequest>(this);
#endif
@@ -310,7 +312,11 @@ namespace Fantasy
[ProtoIgnore]
public int RouteType => Fantasy.RouteType.ChatRoute;
[ProtoMember(1)]
public int Type { get; set; }
[ProtoMember(2)]
public string Message { get; set; }
[ProtoMember(3)]
public long Target { get; set; }
}
/// <summary>
/// 发送聊天响应
@@ -354,6 +360,6 @@ namespace Fantasy
[ProtoIgnore]
public int RouteType => Fantasy.RouteType.ChatRoute;
[ProtoMember(1)]
public string Message { get; set; }
public ChatMessageInfo Message { get; set; }
}
}