diff --git a/CShocker/CShocker.csproj b/CShocker/CShocker.csproj index 6e04a9f..696660c 100644 --- a/CShocker/CShocker.csproj +++ b/CShocker/CShocker.csproj @@ -7,7 +7,7 @@ Glax https://github.com/C9Glax/CShocker git - 1.0.1 + 1.0.2 diff --git a/CShocker/Shockers/Abstract/Shocker.cs b/CShocker/Shockers/Abstract/Shocker.cs index 56ed61c..c3a6bab 100644 --- a/CShocker/Shockers/Abstract/Shocker.cs +++ b/CShocker/Shockers/Abstract/Shocker.cs @@ -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(); diff --git a/CShocker/Shockers/ControlAction.cs b/CShocker/Shockers/ControlAction.cs new file mode 100644 index 0000000..a2c42fa --- /dev/null +++ b/CShocker/Shockers/ControlAction.cs @@ -0,0 +1,9 @@ +namespace CShocker.Shockers; + +public enum ControlAction +{ + Beep, + Vibrate, + Shock, + Nothing +} \ No newline at end of file