Implement the engine to backup map objects when chaning maps (#32)

This commit is contained in:
xCrystal
2023-12-15 19:10:47 +01:00
parent 2bca51eb09
commit d097191ab1
11 changed files with 249 additions and 14 deletions

View File

@@ -54,3 +54,4 @@ MapSetupCommands:
add_mapsetup SpawnInCustomFacing ; 2f
add_mapsetup ResetLevelScopedEventFlags ; 30
add_mapsetup AnchorPointAfterWarp ; 31
add_mapsetup BackupMapObjects ; 32

View File

@@ -58,6 +58,7 @@ MapSetupScript_Fly:
MapSetupScript_Warp:
mapsetup DisableLCD
mapsetup InitSound
mapsetup BackupMapObjects
mapsetup EnterMapSpawnPoint
mapsetup LoadMapAttributes
mapsetup HandleNewMap
@@ -82,6 +83,7 @@ MapSetupScript_Warp:
db -1 ; end
MapSetupScript_BadWarp:
mapsetup BackupMapObjects
mapsetup EnterMapSpawnPoint
mapsetup LoadMapAttributes
mapsetup HandleNewMap
@@ -108,6 +110,7 @@ MapSetupScript_BadWarp:
MapSetupScript_Connection:
mapsetup SuspendMapAnims
mapsetup BackupMapObjects
mapsetup EnterMapConnection
mapsetup LoadMapAttributes
mapsetup HandleNewMap
@@ -129,6 +132,7 @@ MapSetupScript_Fall:
MapSetupScript_Door:
mapsetup FadeOutPalettesToWhite
MapSetupScript_Train:
mapsetup BackupMapObjects
mapsetup EnterMapWarp
mapsetup LoadMapAttributes
mapsetup GetWarpDestCoords