SwiftlyS2

IConsoleOutputService

Interface IConsoleOutputService

Namespace: SwiftlyS2.Shared.ConsoleOutput

Assembly: SwiftlyS2.CS2.dll

public interface IConsoleOutputService

Methods

GetCounterText()

Gets the counter text showing how many messages were filtered.

string GetCounterText()
Returns
  • string — The counter text.

IsFilterEnabled()

Gets whether console filtering is enabled.

bool IsFilterEnabled()
Returns
  • bool — True if filtering is enabled, false otherwise.

NeedsFiltering(string)

Checks if a message needs filtering.

bool NeedsFiltering(string message)
Parameters
  • message string — The message to check.
Returns
  • bool — True if the message should be filtered, false otherwise.

ReloadFilterConfiguration()

Reloads the filter configuration from file.

void ReloadFilterConfiguration()

ToggleFilter()

Toggles the console filter on/off.

void ToggleFilter()

WriteToServerConsole(string)

Writes a message to the server console using the tier0 logging system.

void WriteToServerConsole(string message)
Parameters
  • message string — The message

On this page