shockerId

This commit is contained in:
glax 2024-01-17 19:28:07 +01:00
parent 7f4232ef54
commit 431f4f52ad
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -9,6 +9,8 @@ public abstract class Shocker
protected readonly IntensityRange IntensityRange;
protected readonly DurationRange DurationRange;
protected readonly ILogger? Logger;
private static int _shockerNumber = 0;
public int ShockerId = _shockerNumber++;
public void Control(ControlAction action, string? shockerId = null, int? intensity = null, int? duration = null)
{