You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
827 B
Java
30 lines
827 B
Java
package name.mikanoshi.customiuizer.holidays;
|
|
|
|
import android.content.Context;
|
|
|
|
import com.github.jinatonic.confetti.ConfettoGenerator;
|
|
import com.github.jinatonic.confetti.confetto.Confetto;
|
|
import com.github.matteobattilana.weather.PrecipType;
|
|
import com.github.matteobattilana.weather.confetti.ConfettoInfo;
|
|
|
|
import java.util.Random;
|
|
|
|
public class CoinGenerator implements ConfettoGenerator {
|
|
private final ConfettoInfo confettoInfo;
|
|
private final Context context;
|
|
|
|
public CoinGenerator(Context ctx) {
|
|
super();
|
|
this.context = ctx;
|
|
this.confettoInfo = new ConfettoInfo(PrecipType.CLEAR);
|
|
}
|
|
|
|
public Confetto generateConfetto(Random random) {
|
|
return new CoinParticle(this.context, this.confettoInfo);
|
|
}
|
|
|
|
public final ConfettoInfo getConfettoInfo() {
|
|
return this.confettoInfo;
|
|
}
|
|
}
|