maint: added livewatch asset
This commit is contained in:
59
Assets/Plugins/LiveWatchLite/Scripts/WatchStorageSO.cs
Normal file
59
Assets/Plugins/LiveWatchLite/Scripts/WatchStorageSO.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
namespace Ingvar.LiveWatch
|
||||
{
|
||||
public class WatchStorageSO :
|
||||
#if UNITY_EDITOR
|
||||
ScriptableSingleton<WatchStorageSO>
|
||||
#else
|
||||
Singleton<WatchStorageSO>
|
||||
#endif
|
||||
|
||||
{
|
||||
[SerializeField] private bool _isLive = true;
|
||||
[SerializeField] private bool _collapse = true;
|
||||
[SerializeField] private bool _isLeftSelection = false;
|
||||
[SerializeField] private float _columnWidth = 30;
|
||||
[SerializeField] private float _rowHeight = 30;
|
||||
|
||||
[SerializeField] private WatchStorage _watches = new WatchStorage();
|
||||
|
||||
public bool IsLive
|
||||
{
|
||||
get => _isLive;
|
||||
set => _isLive = value;
|
||||
}
|
||||
|
||||
public bool Collapse
|
||||
{
|
||||
get => _collapse;
|
||||
set => _collapse = value;
|
||||
}
|
||||
|
||||
public bool IsLeftSelection
|
||||
{
|
||||
get => _isLeftSelection;
|
||||
set => _isLeftSelection = value;
|
||||
}
|
||||
|
||||
public float ColumnWidth
|
||||
{
|
||||
get => _columnWidth;
|
||||
set => _columnWidth = Mathf.RoundToInt(value);
|
||||
}
|
||||
|
||||
public float RowHeight
|
||||
{
|
||||
get => _rowHeight;
|
||||
set => _rowHeight = Mathf.RoundToInt(value);
|
||||
}
|
||||
|
||||
public WatchStorage Watches
|
||||
{
|
||||
get => _watches;
|
||||
set => _watches = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user