MMO Item Serialization
-
- Posts: 90
- Joined: 13 Aug 2016, 04:28
MMO Item Serialization
Hi, I have a game where there can be different MMOItems in the MMORoom, like vehicles etc. I want to persist these into a datasource periodically because if the server shuts down I want those items to be restored with their positions, and variable when I restart the server. All the code is ready, except I can't serialize MMOItem's nor it's variables because they don't implement serializable. How can I overcome it without having to introspect in object manually to find each variable?
Re: MMO Item Serialization
Hi,
sorry there is no direct serialization support.
As you suggested, you need to introspect the properties you want to save and serialize them manually.
Cheers
sorry there is no direct serialization support.
As you suggested, you need to introspect the properties you want to save and serialize them manually.
Cheers
-
- Posts: 90
- Joined: 13 Aug 2016, 04:28
Re: MMO Item Serialization
Lapo wrote:Hi,
sorry there is no direct serialization support.
As you suggested, you need to introspect the properties you want to save and serialize them manually.
Cheers
Shoot! OK Thanks.
Who is online
Users browsing this forum: No registered users and 100 guests