Implemented public submodules
This commit is contained in:
@@ -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(){
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user