mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-16 07:53:20 +08:00
19 lines
476 B
C#
19 lines
476 B
C#
using BetterGenshinImpact.Core.Recorder;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BetterGenshinImpact.Core.Script.Dependence;
|
|
|
|
public class KeyMouseScript(string rootPath)
|
|
{
|
|
public async Task Run(string json)
|
|
{
|
|
await KeyMouseMacroPlayer.PlayMacro(json, CancellationContext.Instance.Cts.Token, false);
|
|
}
|
|
|
|
public async Task RunFile(string path)
|
|
{
|
|
var json = await new LimitedFile(rootPath).ReadText(path);
|
|
await Run(json);
|
|
}
|
|
}
|