Added UnitBuild transition class

This commit is contained in:
Anuken 2021-02-14 08:47:53 -05:00
parent 092d152bdc
commit 07a27e913c
3 changed files with 11 additions and 2 deletions

View File

@ -25,8 +25,13 @@ public class MultiEffect extends Effect{
@Override
public void render(EffectContainer e){
int index = 0;
for(Effect f : effects){
e.scaled(f.lifetime, f::render);
int i = ++index;
e.scaled(f.lifetime, cont -> {
cont.id = e.id + i;
f.render(cont);
});
clip = Math.max(clip, f.clip);
}
}

View File

@ -142,6 +142,10 @@ public class Shaders{
}
}
/** @deprecated transition class for mods; use UnitBuildShader instead. */
@Deprecated
public static class UnitBuild extends UnitBuildShader{}
public static class UnitBuildShader extends LoadShader{
public float progress, time;
public Color color = new Color();

View File

@ -1,3 +1,3 @@
org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=72dd3ba5d27fddfbf52719c10738d790e129e5db
archash=f49f7c824adc556cba6b94579c6b0d4e24574b3e