mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-30 10:19:51 +08:00
36 lines
773 B
C#
36 lines
773 B
C#
namespace BetterGenshinImpact.View.Drawable
|
|
{
|
|
/// <summary>
|
|
/// Vision 上下文
|
|
/// </summary>
|
|
public class VisionContext
|
|
{
|
|
private static VisionContext? _uniqueInstance;
|
|
private static readonly object Locker = new();
|
|
|
|
private VisionContext()
|
|
{
|
|
}
|
|
|
|
public static VisionContext Instance()
|
|
{
|
|
if (_uniqueInstance == null)
|
|
{
|
|
lock (Locker)
|
|
{
|
|
_uniqueInstance ??= new VisionContext();
|
|
}
|
|
}
|
|
|
|
return _uniqueInstance;
|
|
}
|
|
|
|
//public ILogger? Log { get; set; }
|
|
|
|
|
|
public bool Drawable { get; set; }
|
|
|
|
|
|
public DrawContent DrawContent { get; set; } = new();
|
|
}
|
|
} |