Allowing Save & Load of Timers #1320
DeathPhoenix22
started this conversation in
Ideas
Replies: 1 comment
-
This is a good point. I'll turn this into an issue to keep track, though this will probably need to be considered together with the whole saving/loading system, which is very tentative at this point. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was partially looking at how I'll be able to save & load games. I've found how with 1 limitation that I could easily overcum, but feel like any project will require it if they use LocalTimer.
Long story short, you can't save a timer. There is no access to it's current "Now" value, which in fact isn't truly interesting. But, to save and load, you need to store the remaining time and instantiate a Timer with that time already added up.
Let's check with a use case:
The solution:
@AlmasB Do you want me to integrate this to the Engine or you prefer that I implement it only in my own game?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions