This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add setting and config for acion.
- Loading branch information
1 parent
ed62c5b
commit 5a83808
Showing
6 changed files
with
110 additions
and
60 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
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 @@ | ||
namespace RotationSolver.Basic.Actions; | ||
|
||
/// <summary> | ||
/// User config. | ||
/// </summary> | ||
public struct ActionConfig() | ||
{ | ||
public bool IsEnable { get; set; } = true; | ||
|
||
public uint StatusGcdCount { get; set; } = 2; | ||
public byte AoeCount { get; set; } = 3; | ||
public float TimeToKill { get; set; } = 0; | ||
|
||
public bool ShouldCheckStatus { get; set; } = true; | ||
public float AutoHealRatio { get; set; } = 0.8f; | ||
|
||
public bool IsEnabled { get; set; } | ||
public bool IsInCooldown { get; set; } | ||
} |
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,27 @@ | ||
namespace RotationSolver.Basic.Actions; | ||
|
||
/// <summary> | ||
/// Setting from the developer. | ||
/// </summary> | ||
public struct ActionSetting() | ||
{ | ||
public StatusID[]? TargetStatus { get; set; } = null; | ||
public Func<GameObject, bool> CanTarget { get; set; } = t => true; | ||
internal ActionID[]? ComboIdsNot { get; set; } | ||
|
||
internal ActionID[]? ComboIds { get; set; } | ||
/// <summary> | ||
/// Status that this action provides. | ||
/// </summary> | ||
public StatusID[]? StatusProvide { get; set; } = null; | ||
|
||
/// <summary> | ||
/// Status that this action needs. | ||
/// </summary> | ||
public StatusID[]? StatusNeed { get; set; } = null; | ||
|
||
public Func<bool>? ActionCheck { get; set; } = null; | ||
|
||
public bool IsFriendly { get; set; } | ||
public TargetType Type { get; set; } = TargetType.Big; | ||
} |
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
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
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