Added sector complete event / Patched up server sector completion

This commit is contained in:
Anuken
2018-10-09 23:24:27 -04:00
parent f2ac9ed385
commit 54488564f3
3 changed files with 22 additions and 27 deletions

View File

@@ -4,10 +4,7 @@ import com.badlogic.gdx.utils.Array;
import io.anuke.mindustry.Vars;
import io.anuke.mindustry.core.GameState.State;
import io.anuke.mindustry.entities.TileEntity;
import io.anuke.mindustry.game.EventType.GameOverEvent;
import io.anuke.mindustry.game.EventType.PlayEvent;
import io.anuke.mindustry.game.EventType.ResetEvent;
import io.anuke.mindustry.game.EventType.WaveEvent;
import io.anuke.mindustry.game.EventType.*;
import io.anuke.mindustry.game.GameMode;
import io.anuke.mindustry.game.Teams;
import io.anuke.mindustry.net.Net;
@@ -112,6 +109,8 @@ public class Logic extends Module{
if(!headless){
ui.missions.show(world.getSector());
}
Events.fire(new SectorCompleteEvent());
}
}

View File

@@ -6,6 +6,10 @@ import io.anuke.ucore.function.Event;
public class EventType{
public static class SectorCompleteEvent implements Event{
}
public static class GameLoadEvent implements Event{
}