Generic types

Discussion and help for Easy Save 3
Post Reply
Gladyon
Posts: 30
Joined: Thu Sep 07, 2017 6:51 am

Generic types

Post by Gladyon »

I just realized that generic types aren't supported by ES3 (except for some predefined exceptions).
Is it because of a technical problem?
Are there some plans to support them?

I know that it is possible to create a non-generic specific class inheriting the generic one, but some times it's not really possible to do becasue you do not know in advance what types will be used.
And in addition, by doing that we lose the benefits of generics.
It also prevent the use of generic struct.
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: Generic types

Post by Joel »

Hi there,

Generic classes/structs are indeed not currently supported as this would form an edge case as they would need to be serialised differently.

However, if there's enough demand we'll see about adding support for them. I've created a feature request here: https://moodkie.com/forum/posting.php?mode=post&f=14

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