BITFALL/Assets/BITKit/Core/Selection/ISelectable.cs

34 lines
744 B
C#
Raw Normal View History

2023-10-20 19:31:12 +08:00
using System;
2023-06-08 14:09:50 +08:00
using System.Collections;
using System.Collections.Generic;
namespace BITKit
{
public enum SelectionState
{
None,
Hover,
Active,
Inactive,
Focus,
Selected,
Enabled,
Checked,
Root,
}
public interface ISelectable
{
2023-12-30 17:37:48 +08:00
#if UNITY_64
UnityEngine.Transform Transform { get; }
#endif
2023-06-08 14:09:50 +08:00
void SetSelectionState(SelectionState state);
2023-10-20 19:31:12 +08:00
event Action OnNone;
event Action OnHover;
event Action OnActive;
event Action OnInactive;
event Action OnFocus;
event Action OnSelected;
event Action OnEnabled;
event Action OnChecked;
event Action OnRoot;
2023-06-08 14:09:50 +08:00
}
}