1
This commit is contained in:
34
Src/Core/Selection/ISelectable.cs
Normal file
34
Src/Core/Selection/ISelectable.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
namespace BITKit
|
||||
{
|
||||
public enum SelectionState
|
||||
{
|
||||
None,
|
||||
Hover,
|
||||
Active,
|
||||
Inactive,
|
||||
Focus,
|
||||
Selected,
|
||||
Enabled,
|
||||
Checked,
|
||||
Root,
|
||||
}
|
||||
public interface ISelectable
|
||||
{
|
||||
#if UNITY_64
|
||||
UnityEngine.Transform Transform { get; }
|
||||
#endif
|
||||
void SetSelectionState(SelectionState state);
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user