Lobby Chat Msg

Definition

1
public struct LobbyChatMsg
Copied!
Represents a chat message sent from the Steam Lobby system. This can be used to identify the sending lobby, user and data and can parse the data to a string or Json serialziable object.

Fields and Attributes

Type
Name
Comment
Lobby
lobby
The source lobby
UserData
sender
The user that sent it
byte[]
data
The raw data sent
DateTime
recievedTime
The time stamp the message was recieved
string
Message
the string parsing of the message

Methods

1
public override string ToString();
Copied!
The same as calling Message, this returns the data parsed using UTF8 to a string
1
public T FromJson<T>();
Copied!
This will read the string data into Unity's JsonUtility casting the object to the input type