mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 11:17:11 +07:00
Cleanup
This commit is contained in:
parent
36b9451e01
commit
878f570472
@ -32,10 +32,6 @@ public class Logic implements ApplicationListener{
|
||||
|
||||
public Logic(){
|
||||
Events.on(WaveEvent.class, event -> {
|
||||
for(Player p : playerGroup.all()){
|
||||
p.respawns = state.rules.respawns;
|
||||
}
|
||||
|
||||
if(world.isZone()){
|
||||
world.getZone().updateWave(state.wave);
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ import java.util.*;
|
||||
|
||||
import static mindustry.Vars.*;
|
||||
|
||||
@SuppressWarnings({"unused", "unused"})
|
||||
@SuppressWarnings({"unused", "unchecked"})
|
||||
public class EntityComps{
|
||||
|
||||
@Component
|
||||
@ -1331,20 +1331,14 @@ public class EntityComps{
|
||||
}
|
||||
|
||||
@Component
|
||||
abstract class EffectComp implements Posc, Drawc, Timedc{
|
||||
abstract class EffectComp implements Posc, Drawc, Timedc, Rotc{
|
||||
Effect effect;
|
||||
Color color = new Color(Color.white);
|
||||
Object data;
|
||||
float rotation = 0f;
|
||||
|
||||
@Override
|
||||
public void draw(){
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(){
|
||||
//TODO fix effects, make everything poolable
|
||||
effect.render(id(), color, time(), rotation(), x(), y(), data);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user