refactor: moved grow animation to its own class
This commit is contained in:
parent
150b602dc3
commit
779af276d3
14 changed files with 224 additions and 116 deletions
|
@ -1,21 +0,0 @@
|
|||
using Presenter;
|
||||
|
||||
namespace View.Collections {
|
||||
public class RoseGrowCollection : IRoseGrow {
|
||||
private readonly IRoseGrow[] _grows;
|
||||
|
||||
public RoseGrowCollection(IRoseGrow[] grows) {
|
||||
_grows = grows;
|
||||
}
|
||||
|
||||
public void Grow() {
|
||||
foreach (IRoseGrow grow in _grows)
|
||||
grow.Grow();
|
||||
}
|
||||
|
||||
public void GrowStep() {
|
||||
foreach (IRoseGrow grow in _grows)
|
||||
grow.GrowStep();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6f517298528d4766a83770b1867f905f
|
||||
timeCreated: 1713475808
|
Loading…
Add table
Add a link
Reference in a new issue