using Fantasy;
namespace NB.Chat;
public static class ChatChannelHelper
{
///
/// 申请一个频道
///
///
///
///
public static ChatChannelComponent Apply(Scene scene, long channelId)
{
return scene.GetComponent().Apply(channelId);
}
///
/// 尝试获取一个频道
///
///
///
///
///
public static bool TryGet(Scene scene, long channelId, out ChatChannelComponent? channel)
{
return scene.GetComponent().TryGet(channelId, out channel);
}
///
/// 解散频道
///
///
///
public static void Disband(Scene scene, long channelId)
{
scene.GetComponent().Disband(channelId);
}
}