Common message packet for a string sent to a tile. E.G., a JSON string for the tile to expand and use to restore data. Note that there's a pool for these in TpMessaging.
More...
|
| string? | m_String |
| | the string sent to the tile.
|
|
| | MessagePacket (Object? sourceInstance) |
| | Source Instance for this packet. Can be null.
|
| Object? | SourceInstance [get, set] |
| | The instance that's the source of the message. Can be null.
|
| ulong | Id [get, set] |
| | The ID of this packet. Packet recepients can test this to see if they're being sent the same message repeatedly. Note that 0 is not used except internally.
|
Common message packet for a string sent to a tile. E.G., a JSON string for the tile to expand and use to restore data. Note that there's a pool for these in TpMessaging.
◆ StringPacket() [1/2]
| TilePlus.StringPacket.StringPacket |
( |
Object? | sourceInstance = null | ) |
|
Initializes a new instance of the StringPacket class.
- Parameters
-
| sourceInstance | Source of message or null |
◆ StringPacket() [2/2]
| TilePlus.StringPacket.StringPacket |
( |
string | s, |
|
|
Object? | sourceInstance = null ) |
Initializes a new instance of the StringPacket class.
- Parameters
-
| s | The string. |
| sourceInstance | Source of message or null |
◆ ToString()
| override string TilePlus.StringPacket.ToString |
( |
| ) |
|
To String.
- Returns
- Returns 'null or empty' or string trimmed to length 10.
◆ m_String
| string? TilePlus.StringPacket.m_String |
the string sent to the tile.
The documentation for this class was generated from the following file:
- /Users/jms/Documents/Tpt_55/TPT55/Assets/Plugins/TilePlus/Runtime/StaticLib/ClassesEnums/MessagingClasses.cs