Page 1 of 1

Get Type of data

Posted: Sat Mar 30, 2024 10:36 pm
by gozda
Hey,
how to get a type of data? i mean if this data is ttring, int32...
in es2 we have something like that

Code: Select all

for...
type = ES2.LoadObject(gameData.fileName + "?tag=" + tags[i], (new ES2Settings())).GetType().Name;
switch (type)
How can i get something similar in es3?
thanks

Re: Get Type of data

Posted: Sun Mar 31, 2024 8:45 am
by Joel
Hi there,

We now require all users to set the order/invoice number in their profile. Please could you do so using the instructions here so I can provide support:

https://moodkie.com/forum/viewtopic.php?t=3014

All the best,
Joel

Re: Get Type of data

Posted: Sun Mar 31, 2024 7:43 pm
by gozda
done, bump

Re: Get Type of data

Posted: Mon Apr 01, 2024 8:25 am
by Joel
Thanks for doing that.

The equivalent in ES3 is to use the ES3.Load overload which doesn't have a generic parameter. I.e.

Code: Select all

System.Object obj = ES3.Load("key");
Or alternatively just set the generic parameter to System.Object:

Code: Select all

System.Object obj = ES3.Load<System.Object>("key");
All the best,
Joel