using Fantasy; namespace NBF { /// /// 创建聊天树的总入口 /// public static class ChatTreeFactory { /// /// 创建世界聊天树 /// /// /// public static ChatInfoTree World() { return new ChatInfoTree() { Scene = Game.Main, ChatChannelType = (int)ChatChannelType.World, }; } /// /// 创建私聊聊天树 /// /// public static ChatInfoTree Private() { return new ChatInfoTree() { Scene = Game.Main, ChatChannelType = (int)ChatChannelType.Private, }; } /// /// 创建系统聊天树 /// /// /// public static ChatInfoTree System(Scene scene) { return new ChatInfoTree() { Scene = scene, ChatChannelType = (int)ChatChannelType.System, }; } /// /// 创建公广播聊天树 /// /// /// public static ChatInfoTree Broadcast(Scene scene) { return new ChatInfoTree() { Scene = scene, ChatChannelType = (int)ChatChannelType.Broadcast, }; } /// /// 创建公告聊天树 /// /// /// public static ChatInfoTree Notice(Scene scene) { return new ChatInfoTree() { Scene = scene, ChatChannelType = (int)ChatChannelType.Notice, }; } /// /// 创建队伍聊天树 /// /// /// public static ChatInfoTree Team(Scene scene) { return new ChatInfoTree() { Scene = scene, ChatChannelType = (int)ChatChannelType.Team, }; } /// /// 创建附近人聊天树 /// /// /// public static ChatInfoTree Near(Scene scene) { return new ChatInfoTree() { Scene = scene, ChatChannelType = (int)ChatChannelType.Near, }; } /// /// 创建当前地图聊天树 /// /// /// public static ChatInfoTree CurrentMap(Scene scene) { return new ChatInfoTree() { Scene = scene, ChatChannelType = (int)ChatChannelType.CurrentMap, }; } } }