-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Automaton.Features; | ||
|
||
[Tweak] | ||
internal class AutoSnipeQuests : Tweak | ||
{ | ||
public override string Name => "Sniper no sniping"; | ||
public override string Description => "Automatically completes snipe quests."; | ||
|
||
public override void Enable() => P.Memory.SnipeHook.Enable(); | ||
public override void Disable() => P.Memory.SnipeHook.Disable(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using ECommons.EzIpcManager; | ||
|
||
namespace Automaton.IPC; | ||
internal class Provider | ||
{ | ||
public Provider() => EzIPC.Init(this); | ||
|
||
[EzIPC] | ||
public bool IsTweakEnabled(string assemblyName) => C.EnabledTweaks.Contains(assemblyName); | ||
|
||
[EzIPC] | ||
public void SetTweakState(string assemblyName, bool state) | ||
{ | ||
if (state) | ||
C.EnabledTweaks.Add(assemblyName); | ||
else | ||
C.EnabledTweaks.Remove(assemblyName); | ||
} | ||
} |