Updateable Logger for Shockers
This commit is contained in:
parent
e6ca0a3823
commit
66ffd99ae5
@ -7,7 +7,7 @@
|
|||||||
<Authors>Glax</Authors>
|
<Authors>Glax</Authors>
|
||||||
<RepositoryUrl>https://github.com/C9Glax/CShocker</RepositoryUrl>
|
<RepositoryUrl>https://github.com/C9Glax/CShocker</RepositoryUrl>
|
||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
<Version>1.1.5</Version>
|
<Version>1.1.6</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -8,7 +8,7 @@ public abstract class Shocker
|
|||||||
public readonly List<string> ShockerIds;
|
public readonly List<string> ShockerIds;
|
||||||
public readonly IntensityRange IntensityRange;
|
public readonly IntensityRange IntensityRange;
|
||||||
public readonly DurationRange DurationRange;
|
public readonly DurationRange DurationRange;
|
||||||
protected readonly ILogger? Logger;
|
protected ILogger? Logger;
|
||||||
|
|
||||||
public void Control(ControlAction action, string? shockerId = null, int? intensity = null, int? duration = null)
|
public void Control(ControlAction action, string? shockerId = null, int? intensity = null, int? duration = null)
|
||||||
{
|
{
|
||||||
@ -33,4 +33,9 @@ public abstract class Shocker
|
|||||||
this.DurationRange = durationRange;
|
this.DurationRange = durationRange;
|
||||||
this.Logger = logger;
|
this.Logger = logger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SetLogger(ILogger? logger)
|
||||||
|
{
|
||||||
|
this.Logger = logger;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user