Eintoo/GameServer/Server/Hotfix/Outter/Chat/Helper/ChatComponentHelper.cs

17 lines
378 B
C#

using Fantasy;
namespace Hotfix;
public class ChatComponentHelper
{
public static void AddChatUnit(Scene scene,ChatUnit chatUnit)
{
scene.GetComponent<ChatComponent>().AddChatUnit(chatUnit);
}
public static void RemoveChatUnit(Scene scene,long accountId)
{
scene.GetComponent<ChatComponent>().RemoveChatUnit(accountId);
}
}