Saving a class by values

Discussion and help for Easy Save 3
Post Reply
Utkan
Posts: 2
Joined: Mon Sep 11, 2023 10:54 am

Saving a class by values

Post by Utkan »

I want to save a class but I don't want to use a reference, I simply want to save the values inside the class and then load them later.
Do I have to save and load each value one by one or is there an automated way to do that?
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Saving a class by values

Post by Joel »

Hi there,

You can provide an ES3Settings object as a parameter to the ES3.Save method with it's referenceMode field set to ES3.ReferenceMode.ByValue.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Utkan
Posts: 2
Joined: Mon Sep 11, 2023 10:54 am

Re: Saving a class by values

Post by Utkan »

Joel wrote: Mon Sep 11, 2023 3:27 pm Hi there,

You can provide an ES3Settings object as a parameter to the ES3.Save method with it's referenceMode field set to ES3.ReferenceMode.ByValue.

All the best,
Joel
Thanks, worked just fine.
Post Reply