Show / Hide Table of Contents

Class ChatParsingUtils

Inheritance
System.Object
ChatParsingUtils
Namespace: Eco.Gameplay.Systems.Messaging.Chat
Assembly: Eco.Gameplay.dll
Syntax
public static class ChatParsingUtils : Object

Methods

ResolveReceiver(String, out String, String)

Given a chat message, attempt to extract receiver and actual message part.

Declaration
public static ValResult<IChatReceiver> ResolveReceiver(string text, out string message, string tag = null)
Parameters
Type Name Description
System.String text
System.String message
System.String tag

Message should be user or channel, it can be extracted from text or given directly.

Returns
Type Description
ValResult<IChatReceiver>

SanitizeChatInput(String)

Given a raw chat message, strips it from size tags and control characters.

Declaration
public static string SanitizeChatInput(string rawText)
Parameters
Type Name Description
System.String rawText
Returns
Type Description
System.String
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾