22 lines
665 B
C#
22 lines
665 B
C#
using Fantasy;
|
|
|
|
namespace Hotfix;
|
|
|
|
public static class ChatChannelCenterComponentHelper
|
|
{
|
|
public static ChatChannel Apply(Scene scene, long chatChannelId)
|
|
{
|
|
return scene.GetComponent<ChatChannelCenterComponent>().Apply(chatChannelId);
|
|
}
|
|
|
|
|
|
public static bool TryGetChannel(Scene scene, long chatChannelId,out ChatChannel channel)
|
|
{
|
|
return scene.GetComponent<ChatChannelCenterComponent>().TryGetChannel(chatChannelId,out channel);
|
|
}
|
|
|
|
public static bool RemoveChannel(Scene scene, long chatChannelId)
|
|
{
|
|
return scene.GetComponent<ChatChannelCenterComponent>().RemoveChannel(chatChannelId);
|
|
}
|
|
} |