forked from MagicBane/Server
Start refactor to use templates
This commit is contained in:
@@ -24,6 +24,7 @@ public class ZoneTemplate {
|
||||
public float min_blend;
|
||||
public float max_blend;
|
||||
public String has_water;
|
||||
public String sea_level_type;
|
||||
public float sea_level;
|
||||
public String has_terrain;
|
||||
public String terrain_type;
|
||||
@@ -34,6 +35,10 @@ public class ZoneTemplate {
|
||||
* ResultSet Constructor
|
||||
*/
|
||||
|
||||
public ZoneTemplate() {
|
||||
|
||||
}
|
||||
|
||||
public ZoneTemplate(ResultSet rs) throws SQLException {
|
||||
this.templateID = rs.getInt("template");
|
||||
this.zone_type = rs.getString("zone_type");
|
||||
@@ -44,6 +49,7 @@ public class ZoneTemplate {
|
||||
this.min_blend = rs.getFloat("zone_min_blend");
|
||||
this.max_blend = rs.getFloat("zone_max_blend");
|
||||
this.has_water = rs.getString("zone_has_water");
|
||||
this.sea_level_type = rs.getString("zone_sea_level_type");
|
||||
this.sea_level = rs.getFloat("zone_sea_level");
|
||||
this.has_terrain = rs.getString("zone_has_terrain_gen");
|
||||
this.terrain_type = rs.getString("terrain_type");
|
||||
|
||||
Reference in New Issue
Block a user