Planet mining settings interface
* Modified owned planet view to include a field which indicates whether mining settings are specific to the planet or come from the empire; modified "simple" game components accordingly * Modified stored procedures to only allow planet-specific mining settings updates when the planet actually uses planet-specific settings, and added a stored procedure which toggles the source of a planet's settings * Added corresponding parts to mining settings DAO and resources controller * Added session commands and server command handlers that toggle the source of the settings and that upload the settings * Split planet page template into multiple files for clarity and added the mining priorities form to the natural resources tab
This commit is contained in:
parent
51b529a09f
commit
e64f847ec3
25 changed files with 1009 additions and 152 deletions
legacyworlds-server-beans-simple/src/main/java/com/deepclone/lw/beans/map
|
@ -101,6 +101,7 @@ public class PlanetDAOBean
|
|||
info.setRenamePossible( rs.getBoolean( "can_rename" ) );
|
||||
info.setAbandonPossible( rs.getBoolean( "can_abandon" ) );
|
||||
info.setAbandonTime( rs.getInt( "abandon_time" ) );
|
||||
info.setOwnSettings( rs.getBoolean( "specific_mining_settings" ) );
|
||||
return info;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -109,6 +109,7 @@ public class PlanetsManagementBean
|
|||
view.sethChange( data.gethChange( ) );
|
||||
view.setIncome( data.getIncome( ) );
|
||||
view.setUpkeep( data.getUpkeep( ) );
|
||||
view.setOwnMiningSettings( data.isOwnSettings( ) );
|
||||
|
||||
view.setCivQueue( this.planetDao.getConstructionQueue( planetId ) );
|
||||
view.setMilQueue( this.planetDao.getMilitaryQueue( planetId ) );
|
||||
|
|
Reference in a new issue