mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-01 10:39:50 +08:00
36 lines
761 B
C#
36 lines
761 B
C#
using BetterGenshinImpact.GameTask.Model;
|
|
using System;
|
|
|
|
namespace BetterGenshinImpact.GameTask
|
|
{
|
|
/// <summary>
|
|
/// 任务上下文
|
|
/// </summary>
|
|
public class TaskContext
|
|
{
|
|
|
|
private static TaskContext? _uniqueInstance;
|
|
private static readonly object Locker = new();
|
|
|
|
private TaskContext()
|
|
{
|
|
}
|
|
|
|
public static TaskContext Instance()
|
|
{
|
|
if (_uniqueInstance == null)
|
|
{
|
|
lock (Locker)
|
|
{
|
|
_uniqueInstance ??= new TaskContext();
|
|
}
|
|
}
|
|
return _uniqueInstance;
|
|
}
|
|
|
|
public IntPtr GameHandle { get; set; }
|
|
|
|
public SystemInfo SystemInfo { get; set; }
|
|
}
|
|
}
|