swiftlys2/docs/api/ai/
API Reference ConsoleOutput

IConsoleOutputService

Interface
Namespace: SwiftlyS2.Shared.ConsoleOutput · Assembly: SwiftlyS2.CS2.dll
public interface IConsoleOutputService
View source

Methods

GetCounterText()

Gets the counter text showing how many messages were filtered.

string GetCounterText()
Returns
The counter text.

IsFilterEnabled()

Gets whether console filtering is enabled.

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

NeedsFiltering(string)

Checks if a message needs filtering.

bool NeedsFiltering(string message)
Parameters
  • messagestringThe message to check.
Returns
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