mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[commands] Change grouping decorator impl to flatten nested group structures (#3335)
This commit is contained in:
@@ -84,6 +84,15 @@ class SequentialCommandGroup
|
||||
|
||||
bool RunsWhenDisabled() const override;
|
||||
|
||||
SequentialCommandGroup BeforeStarting(
|
||||
std::function<void()> toRun,
|
||||
wpi::ArrayRef<Subsystem*> requirements = {}) &&
|
||||
override;
|
||||
|
||||
SequentialCommandGroup AndThen(std::function<void()> toRun,
|
||||
wpi::ArrayRef<Subsystem*> requirements = {}) &&
|
||||
override;
|
||||
|
||||
private:
|
||||
void AddCommands(std::vector<std::unique_ptr<Command>>&& commands) final;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user