How can i fix this issue? "a getter and a setter"

Easy Save 2 has been replaced by Easy Save 3, so is no longer supported.
Locked
oknust
Posts: 3
Joined: Sat Sep 02, 2017 7:49 pm

How can i fix this issue? "a getter and a setter"

Post by oknust »

Hi, first of all I don't know so much c#. I try to save my inventory in UFPS. For example;

I try to save WeaponsByUnit or UnitBankInstance or etc. (in UFPS), it's shows to me "This property needs a getter and a setter to be able to save it"

How can i fix it? What should I do? How do I add a code in this scripts?
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: How can i fix this issue? "a getter and a setter"

Post by Joel »

Hi there,

Unfortunately as we have no experience with UFPS we can't help directly with it, but you can find information on getters/setters here.

Generally if a property does not have a setter, you shouldn't save it, because the developers might have a reason for not letting you set the value of a property.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Locked