v0.4.3: implement seeds into levelgen (not currently user enterable)

This commit is contained in:
Evan Debenham
2016-09-23 21:00:17 -04:00
parent 84f61ff37e
commit 1565030825
7 changed files with 201 additions and 30 deletions
@@ -75,6 +75,10 @@ public class Bundle {
public int getInt( String key ) {
return data.optInt( key );
}
public long getLong( String key ) {
return data.optLong( key );
}
public float getFloat( String key ) {
return (float)data.optDouble( key, 0.0 );
@@ -238,6 +242,14 @@ public class Bundle {
}
}
public void put( String key, long value ) {
try {
data.put( key, value );
} catch (JSONException e) {
}
}
public void put( String key, float value ) {
try {