ID:132260
 
What does world/Reboot() actually do? Does it call world/Del() then world/New() to Reboot or it has its completely own defined code to Reboot?

- Hashir
Most likely it does call Del() and New(), as it has to reload .dmb file.
In response to Zaoshi
Zaoshi wrote:
Most likely it does call Del() and New(), as it has to reload .dmb file.

So if there is a savefile creating/modifying code in world/Del(), and savefile loading code in world/New(). Will it save and load those savefiles if just world/Reboot() is called?
In response to Hashir
world
New()
..()
var/savefile/F = new("world.New")
F << "world.New"

Del()
var/savefile/F = new("world.Del")
F << "world.Del"
..()

mob/verb/reboot()
world.Reboot()


Creates both savefiles properly. So the answer is yes.
In response to Zaoshi
Alright, thank you.