A raw message in Dojo network, transferred in Nakama match.
More...
|
| DojoMessage (IMatchState state) |
| Construct given Nakama.IMatchState recevied from Nakama match.
|
|
| DojoMessage (byte[] data) |
| Construct a placeholder message for data .
|
|
| DojoMessage (string data) |
| Construct a placeholder message for data .
|
|
string | GetString () |
| Get message data as UTF8 string.
|
|
object | GetUnderlyingMessage () |
|
T | GetDecodedData< T > () |
| Decode message data into JSON-like data T .
|
|
A raw message in Dojo network, transferred in Nakama match.
◆ DojoMessage() [1/3]
Dojo.DojoMessage.DojoMessage |
( |
IMatchState |
state | ) |
|
|
inline |
Construct given Nakama.IMatchState recevied from Nakama match.
- Parameters
-
◆ DojoMessage() [2/3]
Dojo.DojoMessage.DojoMessage |
( |
byte[] |
data | ) |
|
|
inline |
Construct a placeholder message for data
.
- Parameters
-
◆ DojoMessage() [3/3]
Dojo.DojoMessage.DojoMessage |
( |
string |
data | ) |
|
|
inline |
Construct a placeholder message for data
.
- Parameters
-
◆ GetDecodedData< T >() [1/2]
T Dojo.DojoMessage.GetDecodedData< T > |
( |
| ) |
|
|
inline |
Decode message data into JSON-like data T
.
- Template Parameters
-
- Returns
- decoded data
◆ GetDecodedData< T >() [2/2]
static T Dojo.DojoMessage.GetDecodedData< T > |
( |
string |
data | ) |
|
|
inlinestatic |
Decode message data into JSON-like data T
.
- Template Parameters
-
- Parameters
-
data | encoded JSON message content |
- Returns
- decoded data
◆ GetString()
string Dojo.DojoMessage.GetString |
( |
| ) |
|
|
inline |
Get message data as UTF8 string.
- Returns
- message content
◆ OpCode
readonly long Dojo.DojoMessage.OpCode |
◆ RawData
readonly byte [] Dojo.DojoMessage.RawData |
◆ Sender
readonly IUserPresence Dojo.DojoMessage.Sender |
Sender presence on Nakama
The documentation for this class was generated from the following file:
- Unity/Assets/Dojo/DojoMessage.cs