diff options
| author | Radio <radiohotline@disroot.org> | 2026-06-04 15:15:11 +0300 |
|---|---|---|
| committer | Radio <radiohotline@disroot.org> | 2026-06-04 15:15:11 +0300 |
| commit | 9d74b49ab62908d4acf53dde444413886b8b28e5 (patch) | |
| tree | 0cb785267ea7e239b19d88684c0d64b9bd5d52f0 /addons/escoria-core/_test/test_migrations.gd | |
| parent | 2c85d452ad02a5f89cd43bad7f9de31d0e4fa0c1 (diff) | |
escoria setup and old branch archives
Diffstat (limited to 'addons/escoria-core/_test/test_migrations.gd')
| -rw-r--r-- | addons/escoria-core/_test/test_migrations.gd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/addons/escoria-core/_test/test_migrations.gd b/addons/escoria-core/_test/test_migrations.gd new file mode 100644 index 0000000..19ecb45 --- /dev/null +++ b/addons/escoria-core/_test/test_migrations.gd @@ -0,0 +1,20 @@ +extends Control + + + +func _on_CheckESCMigrationManager_pressed() -> bool: + var savegame: ESCSaveGame = ESCSaveGame.new() + + savegame.globals["test"] = "testa" + + var migration_manager: ESCMigrationManager = ESCMigrationManager.new() + savegame = migration_manager.migrate( + savegame, + "1.0.0", + "2.0.0", + "res://addons/escoria-core/_test/testversions" + ) + + assert(savegame.globals["test"] == "testc") + + return true |
