Skip to main content

IHoverableControl

/// <summary>                                                                                 
/// This marks a tile as accepting ActionToTile packets for                                   
/// New Input System hover events.                                                            
/// Note that this will create many events as the mouse moves                                 
/// from one grid position to the next.                                                       
/// These events are pooled.  Implement MessageTarget as EXPLICIT interface implementation.   
/// </summary>                                                                                
public interface IHoverableControl: ITpMessaging<BoolPacket>                                  
{                                                                                             
    /// <summary>                                                                             
    ///  Implicit declaration of required MessageTarget for Hoverable Controls                
    /// </summary>                                                                            
    /// <param name="sentPacket">bool packet: true = enter zone, false = exit zone.</param>   
    /// <remarks>ALWAYS implement as explicit!!</remarks>                                     
    void MessageTarget(ActionToTilePacket sentPacket){}                                       
}