Does ES3 SaveTypes work with inheritance?

Discussion and help for Easy Save 3
Post Reply
yimingt
Posts: 21
Joined: Fri Apr 30, 2021 3:07 am

Does ES3 SaveTypes work with inheritance?

Post by yimingt »

For instance, I have a base class of AIBase and child classes of AIEnemy and AIHuman. Inside AIBase is a variable of CurrentPhase I would like to save. If I create an ES3Type for AIBase that saves CurrentPhase, do I still need to toggle on saving for CurrentPhase in the AIEnemy and AIHuman script?
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Does ES3 SaveTypes work with inheritance?

Post by Joel »

Hi there,

ES3Types intentionally don't inherit, so you would need to toggle it in the derived classes.

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