2022-12-17 11:55:01 +03:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2022-11-14 12:15:32 +03:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace Syntriax.Modules.Trigger
|
|
|
|
{
|
2022-12-17 14:57:18 +03:00
|
|
|
public interface IColliderTriggerArea : ITriggerArea
|
2022-11-14 12:15:32 +03:00
|
|
|
{
|
2022-12-17 11:55:01 +03:00
|
|
|
/// <summary>
|
|
|
|
/// <see cref="LayerMask"/> value for checking triggers
|
|
|
|
/// </summary>
|
2022-11-14 12:15:32 +03:00
|
|
|
LayerMask ColliderMask { get; set; }
|
2022-12-17 11:55:01 +03:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Called whenever the list of <see cref="Collider2D"/> changes
|
|
|
|
/// </summary>
|
2022-12-17 14:57:18 +03:00
|
|
|
/// <value>List of <see cref="Collider2D"/> that triggered the <see cref="IColliderTriggerArea"/></value>
|
2022-12-17 11:55:01 +03:00
|
|
|
Action<List<Collider2D>> OnTriggeredCollidersUpdated { get; set; }
|
2022-12-17 14:57:18 +03:00
|
|
|
|
|
|
|
/// <value>List of <see cref="Collider2D"/> that triggered the <see cref="IColliderTriggerArea"/></value>
|
|
|
|
List<Collider2D> ColliderList { get; }
|
2022-11-14 12:15:32 +03:00
|
|
|
}
|
|
|
|
}
|