CShock/CShocker/Shockers/Abstract/Shocker.cs

25 lines
531 B
C#
Raw Permalink Normal View History

using CShocker.Devices.Abstract;
using CShocker.Devices.Additional;
2024-01-17 04:11:30 +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
public Api Api { get; }
internal Shocker(Api api)
{
this.Api = api;
}
public void Control(ControlAction action, int intensity, int duration)
{
this.Api.Control(action, intensity, duration, this);
}
public void Dispose()
{
Api.Dispose();
}
2024-01-17 04:11:30 +01:00
}