How Can I save singleton classes?
Posted: Tue Apr 20, 2021 9:28 am
I have an Interface called IGameState and have 2 derived Classes from it.(and are singletons)
I also have a field of type IGameState called CurrentGameState.
I have already created the Custom es3 type file
code link is given below.
https://hatebin.com/pmaqzahtcj
es3Type code
https://pastebin.com/UB1qE6r8
I use singletons and statics heavily. What I want is a robust save system which saves everything when the game crashes. So when I fix-up the bug I can jump into the moment where the crash occurred..
This will reduce the development time as I don't have to play the game from the start to reach the point where the bug occurred.
I also have a field of type IGameState called CurrentGameState.
I have already created the Custom es3 type file
code link is given below.
https://hatebin.com/pmaqzahtcj
es3Type code
https://pastebin.com/UB1qE6r8
I use singletons and statics heavily. What I want is a robust save system which saves everything when the game crashes. So when I fix-up the bug I can jump into the moment where the crash occurred..
This will reduce the development time as I don't have to play the game from the start to reach the point where the bug occurred.