TilePlus Version 5
Unity3D Tilemap Extension
Loading...
Searching...
No Matches
TilePlus.PositionPacket Class Reference

Common message packet for a Vector3Int position to a tile. More...

Inheritance diagram for TilePlus.PositionPacket:
Collaboration diagram for TilePlus.PositionPacket:

Public Member Functions

 PositionPacket (Object? sourceInstance=null)
 Initializes a new instance of the PositionPacket class.
 PositionPacket (Vector3Int pos, Object? sourceInstance=null)
 Initializes a new instance of the PositionPacket class.
Public Member Functions inherited from TilePlus.MessagePacket< T >
virtual void Reset ()
 Reset the SourceInstance. Override for additional resets of variables holding references.

Public Attributes

Vector3Int m_Position
 A grid position.

Additional Inherited Members

Protected Member Functions inherited from TilePlus.MessagePacket< T >
 MessagePacket (Object? sourceInstance)
 Source Instance for this packet. Can be null.
Properties inherited from TilePlus.MessagePacket< T >
ObjectSourceInstance [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.

Detailed Description

Common message packet for a Vector3Int position to a tile.

Constructor & Destructor Documentation

◆ PositionPacket() [1/2]

TilePlus.PositionPacket.PositionPacket ( Object? sourceInstance = null)

Initializes a new instance of the PositionPacket class.

◆ PositionPacket() [2/2]

TilePlus.PositionPacket.PositionPacket ( Vector3Int pos,
Object? sourceInstance = null )

Initializes a new instance of the PositionPacket class.

Parameters
posThe position.
sourceInstanceSource of message or null

Member Data Documentation

◆ m_Position

Vector3Int TilePlus.PositionPacket.m_Position

A grid position.


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