Skip to content

Commit e760b9b

Browse files
committed
Added ProfileHitGo
1 parent 55cd8af commit e760b9b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Sources/AutoSplitterCoreModule.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
using System.Reflection.Emit;
2929
using System.Collections.Generic;
3030
using System.Linq;
31+
using System.Runtime.InteropServices;
3132

3233
namespace HitCounterManager
3334
{
@@ -97,6 +98,12 @@ public interface IAutoSplitterCoreInterface
9798
/// <param name="Amount">Amount of splits that will be moved forwards/backwards</param>
9899
void ProfileSplitGo(int Amount);
99100

101+
/// <summary>
102+
/// Modifies the currently selected split on hit by Amount.
103+
/// </summary>
104+
/// <param name="Amount"></param>
105+
public void ProfileHitGo(int Aumount, bool WayHit);
106+
100107
/// <summary>
101108
/// Indicates if timer is currently running.
102109
/// </summary>
@@ -275,6 +282,8 @@ public bool PracticeMode
275282

276283
public void ProfileSplitGo(int Amount) => profCtrl.ProfileSplitGo(Amount);
277284

285+
public void ProfileHitGo(int Aumount, bool WayHit) { if (WayHit) profCtrl.ProfileWayHit(Aumount); else profCtrl.ProfileHit(Aumount); }
286+
278287
public bool TimerRunning => profCtrl.TimerRunning;
279288

280289
public void StartStopTimer(bool Start) => form1.StartStopTimer(Start);

0 commit comments

Comments
 (0)