Output always what is could happen
This commit is contained in:
parent
850d9c842b
commit
d102c970ec
@ -11,21 +11,14 @@ public abstract class Shocker
|
|||||||
|
|
||||||
public void Control(ControlAction action, string? shockerId = null)
|
public void Control(ControlAction action, string? shockerId = null)
|
||||||
{
|
{
|
||||||
|
int intensity = _intensity.GetValue();
|
||||||
|
int duration = _duration.GetValue();
|
||||||
|
Console.WriteLine($"{action} {intensity} {duration}");
|
||||||
if(shockerId is null)
|
if(shockerId is null)
|
||||||
foreach (string shocker in _shockerIds)
|
foreach (string shocker in _shockerIds)
|
||||||
{
|
|
||||||
int intensity = _intensity.GetValue();
|
|
||||||
int duration = _duration.GetValue();
|
|
||||||
ControlInternal(action, shocker, intensity, duration);
|
ControlInternal(action, shocker, intensity, duration);
|
||||||
Console.WriteLine($"{shocker} {action} {intensity} {duration}");
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
int intensity = _intensity.GetValue();
|
|
||||||
int duration = _duration.GetValue();
|
|
||||||
ControlInternal(action, shockerId, intensity, duration);
|
ControlInternal(action, shockerId, intensity, duration);
|
||||||
Console.WriteLine($"{shockerId} {action} {intensity} {duration}");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract void ControlInternal(ControlAction action, string shockerId, int intensity, int duration);
|
protected abstract void ControlInternal(ControlAction action, string shockerId, int intensity, int duration);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user