public async Task Off() { if (RedSwitch != null) { await RedSwitch.Off(); } if (BlueSwitch != null) { await BlueSwitch.Off(); } if (Scale != null) { await Scale.Off(); } }
public async Task StaffSafe() { if (RedSwitch != null) { await RedSwitch.StaffSafe(); } if (BlueSwitch != null) { await BlueSwitch.StaffSafe(); } if (Scale != null) { await Scale.StaffSafe(); } }
public async Task Play() { if (RedSwitch != null) { await RedSwitch.Play(); } if (BlueSwitch != null) { await BlueSwitch.Play(); } if (Scale != null) { await Scale.Play(); } }
public async Task Randomize(FieldSettings fieldSettings) { // Pass in field settings in order to wait for settings // to get updated by the field piece firmware fieldSettings.PrepareForRandomizationUpdates(); if (RedSwitch != null) { await RedSwitch.Randomize(); } if (BlueSwitch != null) { await BlueSwitch.Randomize(); } if (Scale != null) { await Scale.Randomize(); } fieldSettings.WaitForAllUpdates(); }