2024-02-01 23:03:28 +01:00
|
|
|
|
using CShocker.Devices.Abstract;
|
|
|
|
|
using CShocker.Devices.Additional;
|
2024-01-17 04:11:30 +01:00
|
|
|
|
|
2024-02-01 23:03:28 +01:00
|
|
|
|
namespace CShocker.Shockers.Abstract;
|
|
|
|
|
|
|
|
|
|
public abstract class Shocker : IDisposable
|
2024-01-17 04:11:30 +01:00
|
|
|
|
{
|
2024-02-12 02:01:31 +01:00
|
|
|
|
// ReSharper disable once MemberCanBePrivate.Global -> Exposed
|
2024-02-01 23:03:28 +01:00
|
|
|
|
public Api Api { get; }
|
|
|
|
|
|
|
|
|
|
internal Shocker(Api api)
|
|
|
|
|
{
|
|
|
|
|
this.Api = api;
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-11 22:24:53 +01:00
|
|
|
|
public void Control(ControlAction action, int intensity, int duration)
|
2024-02-01 23:03:28 +01:00
|
|
|
|
{
|
|
|
|
|
this.Api.Control(action, intensity, duration, this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Dispose()
|
|
|
|
|
{
|
|
|
|
|
Api.Dispose();
|
|
|
|
|
}
|
2024-01-17 04:11:30 +01:00
|
|
|
|
}
|