聊天频道

This commit is contained in:
2025-08-08 09:12:30 +08:00
parent 3c39f4a3c9
commit 3fb2c6a7d3
595 changed files with 63 additions and 12 deletions

View File

@@ -291,7 +291,9 @@ namespace NBC
}
public override void Dispose()
{
Type = default;
Message = default;
Target = default;
#if FANTASY_NET || FANTASY_UNITY
GetScene().MessagePoolComponent.Return<C2Chat_SendMessageRequest>(this);
#endif
@@ -302,7 +304,11 @@ namespace NBC
[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>
/// 发送聊天响应
@@ -346,6 +352,6 @@ namespace NBC
[ProtoIgnore]
public int RouteType => Fantasy.RouteType.ChatRoute;
[ProtoMember(1)]
public string Message { get; set; }
public ChatMessageInfo Message { get; set; }
}
}