Announcement

Collapse
No announcement yet.

Saving booleans as strings in save games - why?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Hmm.. I think it's because the C++ function wants a field name as a string to figure out what to save out.. going to leave this thread here anyway in case there would be other reasons. Cheers.

    Leave a comment:


  • started a topic Saving booleans as strings in save games - why?

    Saving booleans as strings in save games - why?

    I noticed that the devs are using strings for booleans in the Match3 example when saving things to the save game. Is this for a reason, generally speaking I mean as opposed to how this example was made? Is there generally a reason to do so?

    As an example the game instance has a string 'SaveString_PurchasedTheme' which has a boolean converted right into that string.. this could've been done to keep all vars the same type for simplicity, or maybe it's easier to read somehow?

    Thanks for any clarification.
Working...
X