Updated according to comments

This commit is contained in:
Lukas Klingsbo
2020-06-05 23:24:42 +02:00
parent ba8dd8a839
commit 53de371520
3 changed files with 9 additions and 5 deletions

View File

@ -15,8 +15,10 @@ class SequenceEffect extends PositionComponentEffect {
isInfinite = false,
isAlternating = false,
}) : super(isInfinite, isAlternating) {
/// No effects can be added to components from the start
assert(effects.every((effect) => effect.component == null));
assert(
effects.every((effect) => effect.component == null),
"No effects can be added to components from the start",
);
}
@override