Compare commits
1
Commits
feat/script
...
feat-gpu
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe2fd5d67c |
No files matched your search
@@ -50,12 +50,6 @@ public class AutoDomainTask
|
||||
|
||||
_predictor = new(Global.Absolute("Assets\\Model\\Domain\\bgi_tree.onnx"), BgiSessionOption.Instance.Options);
|
||||
|
||||
var captureArea = TaskContext.Instance().SystemInfo.CaptureAreaRect;
|
||||
var assetScale = TaskContext.Instance().SystemInfo.AssetScale;
|
||||
_clickOffset = new ClickOffset(captureArea.X, captureArea.Y, assetScale);
|
||||
_combatCommands = CombatScriptParser.Parse(_taskParam.CombatStrategyContent);
|
||||
_config = TaskContext.Instance().Config.AutoDomainConfig;
|
||||
|
||||
_combatScriptBag = CombatScriptParser.ReadAndParse(_taskParam.CombatStrategyPath);
|
||||
}
|
||||
|
||||
|
||||
@@ -45,6 +45,9 @@ public partial class HomePageViewModel : ObservableObject, INavigationAware, IVi
|
||||
private readonly TaskTriggerDispatcher _taskDispatcher;
|
||||
private readonly MouseKeyMonitor _mouseKeyMonitor = new();
|
||||
|
||||
// 记录上次使用原神的句柄
|
||||
private IntPtr _hWnd;
|
||||
|
||||
[ObservableProperty] private string[] _inferenceDevices = ["CPU", "GPU"];
|
||||
|
||||
public HomePageViewModel(IConfigService configService, TaskTriggerDispatcher taskTriggerDispatcher)
|
||||
|
||||
Reference in new issue
Block a user