public static void Main() { FConsole.Title = "CLIENT APP"; GlobalExceptionHandler.Setup(); Jit.PreJit(); StartupScreen.Draw(); while (true) { DrawUI(); //HomeScreen.Draw(); var input = FConsole.ReadLine(); if (input.StartsWith('/')) { var command = input.Split(' ')[0]; switch (command) { case "/s": ServerCommandHandler.Process(input); break; case "/c": ChannelCommandHandler.Process(input); break; case "/dm": ServerCommandHandler.Process("/s 0"); break; } } else { Core.MyUser.SendMessage(input); } } }
public void UnregisterChannelMessageCommandHandler(Command command, ChannelCommandHandler handler) { UnregisterHandler(ChannelMessageHandlers, command, handler); }
public void UnregisterChannelNoticeCommandHandler(Command command, ChannelCommandHandler handler) { UnregisterHandler(ChannelNoticeHandlers, command, handler); }
public void UnregisterChannelActionCommandHandler(Command command, ChannelCommandHandler handler) { UnregisterHandler(ChannelActionHandlers, command, handler); }