Make Enum ControlAction public

This commit is contained in:
glax 2024-01-17 04:33:41 +01:00
parent 3bbde48796
commit 6d96baabfe
3 changed files with 11 additions and 4 deletions

View File

@ -7,7 +7,7 @@
<Authors>Glax</Authors>
<RepositoryUrl>https://github.com/C9Glax/CShocker</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
</PropertyGroup>
<ItemGroup>

View File

@ -8,9 +8,7 @@ internal abstract class Shocker
{
protected readonly AShockerSettings ShockerSettings;
protected readonly ILogger? Logger;
internal enum ControlAction { Beep, Vibrate, Shock, Nothing }
internal void Control(ControlAction action, string? shockerId = null, int? intensity = null, int? duration = null)
{
int i = intensity ?? ShockerSettings.Intensity.GetRandomRangeValue();

View File

@ -0,0 +1,9 @@
namespace CShocker.Shockers;
public enum ControlAction
{
Beep,
Vibrate,
Shock,
Nothing
}