Implemented public submodules

This commit is contained in:
Anuken
2018-10-08 09:41:01 -04:00
parent fadfdaa673
commit 9994ddb31b
25 changed files with 58 additions and 123 deletions

View File

@@ -48,11 +48,11 @@ public class Sector{
}
public SaveSlot getSave(){
return !hasSave() ? null : control.getSaves().getByID(saveID);
return !hasSave() ? null : control.saves.getByID(saveID);
}
public boolean hasSave(){
return !headless && control.getSaves().getByID(saveID) != null;
return !headless && control.saves.getByID(saveID) != null;
}
public int packedPosition(){

View File

@@ -50,7 +50,7 @@ public class Sectors{
world.loadSector(sector);
logic.play();
if(!headless){
sector.saveID = control.getSaves().addSave("sector-" + sector.packedPosition()).index;
sector.saveID = control.saves.addSave("sector-" + sector.packedPosition()).index;
}
world.sectors().save();
world.setSector(sector);
@@ -147,7 +147,7 @@ public class Sectors{
}
if(!headless){
renderer.fog().setLoadingOffset(shiftX, shiftY);
renderer.fog.setLoadingOffset(shiftX, shiftY);
}
//create *new* tile array