![]() |
TilePlus Version 5
Unity3D Tilemap Extension
|
Abstract base class for message packets. More...

Public Member Functions | |
| virtual void | Reset () |
| Reset the SourceInstance. Override for additional resets of variables holding references. | |
Protected Member Functions | |
| MessagePacket (Object? sourceInstance) | |
| Source Instance for this packet. Can be null. | |
Properties | |
| 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. | |
Abstract base class for message packets.
| T | Type of this packet |
The source instance can be null, usage dependent. In general it's a good idea to supply it when it's not from a static class invocation It's mandatory if you're using tile-to-tile messaging.
|
protected |
Source Instance for this packet. Can be null.
| sourceInstance |
|
virtual |
Reset the SourceInstance. Override for additional resets of variables holding references.
Reimplemented in TilePlus.ActionToTilePacket, TilePlus.ObjectPacket, and TilePlus.PositionZmPacket.
|
getset |
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.
|
getset |
The instance that's the source of the message. Can be null.