TilePlus Version 5
Unity3D Tilemap Extension
Loading...
Searching...
No Matches
TilePlus.ITpMessaging< in T > Interface Template Reference

Interface for using TpLib SendMessage methods. More...

Inheritance diagram for TilePlus.ITpMessaging< in T >:

Public Member Functions

void MessageTarget (T sentPacket)
 Send a message of type T.
bool CanAcceptMessage ()
 Optional "are you ready?" method that can be used in filtering prior to sending a message. Useful in some edge cases. Override in implementation if necc. NOTE this is NOT checked internally somehow. You have to use a filter and test this.

Detailed Description

Interface for using TpLib SendMessage methods.

Template Parameters
TType for sending a message
Type Constraints
T :MessagePacket<T> 

Member Function Documentation

◆ CanAcceptMessage()

bool TilePlus.ITpMessaging< in T >.CanAcceptMessage ( )

Optional "are you ready?" method that can be used in filtering prior to sending a message. Useful in some edge cases. Override in implementation if necc. NOTE this is NOT checked internally somehow. You have to use a filter and test this.

Returns
True if the tile is prepared to get the message.

◆ MessageTarget()

void TilePlus.ITpMessaging< in T >.MessageTarget ( T sentPacket)

Send a message of type T.

Parameters
sentPacketThe sent packet.

The documentation for this interface was generated from the following file:
  • /Users/jms/Documents/Tpt_55/TPT55/Assets/Plugins/TilePlus/Runtime/Interface/ITpMessaging.cs