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>
|
2023-02-16 13:03:30 +03:00
|
|
|
/// Called whenever the list of <see cref="Transform"/> changes
|
2022-12-17 11:55:01 +03:00
|
|
|
/// </summary>
|
2023-02-16 13:03:30 +03:00
|
|
|
/// <value>List of <see cref="Transform"/> that their colliders triggered the <see cref="IColliderTriggerArea"/></value>
|
|
|
|
Action<List<Transform>> OnTriggeredTransformsUpdated { get; set; }
|
2022-12-17 14:57:18 +03:00
|
|
|
|
2023-02-16 13:03:30 +03:00
|
|
|
/// <value>List of <see cref="Transform"/> that their colliders triggered the <see cref="IColliderTriggerArea"/></value>
|
|
|
|
List<Transform> TriggeredTransforms { get; }
|
2022-11-14 12:15:32 +03:00
|
|
|
}
|
|
|
|
}
|