Class KaijuPrefixTextFilter
Text filter that only keeps messages that are prefixed by one or more prefixes which could be useful for implementing team-based chats.
Namespace: KaijuSolutions.MultiplayerEngine
Syntax
public sealed class KaijuPrefixTextFilter : KaijuTextFilter
Fields
prefixes
Only keep messages which start with one of these prefixes.
Declaration
public string[] prefixes
Field Value
| Type | Description |
|---|---|
| System.String[] |
Methods
Filter(ref String, UInt64)
Filter logic.
Declaration
public override void Filter(ref string chat, ulong id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | chat | The chat message to apply the filter to. Must not set to NULL. |
| System.UInt64 | id | The ID of the player that the message is from. |