changed world's GENVER spec so that it will always save the game's version number

This commit is contained in:
minjaesong
2022-02-06 19:50:56 +09:00
parent efe5c49463
commit 24d6634257
3 changed files with 4 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
const val VERSION_RAW = 0x00030001
// Commit counts up to the Release 0.3: 2259 (plz update!)
// Commit counts up to the Release 0.3.0: 2259 (plz update!)
//////////////////////////////////////////////////////////
// CONFIGURATION FOR TILE MAKER //

View File

@@ -4,6 +4,7 @@ import com.badlogic.gdx.utils.Json
import com.badlogic.gdx.utils.JsonValue
import com.badlogic.gdx.utils.JsonWriter
import net.torvald.random.HQRNG
import net.torvald.terrarum.TerrarumAppConfiguration
import net.torvald.terrarum.console.EchoError
import net.torvald.terrarum.gameworld.BlockLayer
import net.torvald.terrarum.gameworld.GameWorld
@@ -27,7 +28,7 @@ import java.util.zip.GZIPOutputStream
*/
object Common {
const val GENVER = 4
const val GENVER = TerrarumAppConfiguration.VERSION_RAW
const val COMP_NONE = 0
const val COMP_GZIP = 1
const val COMP_LZMA = 2

View File

@@ -44,7 +44,7 @@ Following code is an example Savegame JSON files.
```
{
savename: "Test World 1",
genver: 4, /* generator version in integer */
genver: 0x00030001, /* generator version in integer; always use TerrarumAppConfiguration.VERSION_RAW */
terrseed: "84088805e145b555",
randseed: "19b25856e1c150ca834cffc8b59b23ad",
weatseed: "e5e72beb4e3c6926d3dc9e3e2ef7833b",