Added sector complete event / Patched up server sector completion
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user