Updateable Logger for Shockers

This commit is contained in:
glax 2024-01-17 21:23:08 +01:00
parent e6ca0a3823
commit 66ffd99ae5
2 changed files with 7 additions and 2 deletions

View File

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

View File

@ -8,7 +8,7 @@ public abstract class Shocker
public readonly List<string> ShockerIds;
public readonly IntensityRange IntensityRange;
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)
{
@ -33,4 +33,9 @@ public abstract class Shocker
this.DurationRange = durationRange;
this.Logger = logger;
}
public void SetLogger(ILogger? logger)
{
this.Logger = logger;
}
}