RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Version number in Scripts\Items\Containers\Container.cs - Serialize()

Scriptiz

Sorceror
Hello guys,

Wondering why you haven't write a version number in Serialize() and Deserialize() methods in Scripts\Items\Containers\Container.cs ?

Because now that I want to add some custom private attributes in BaseContainer class, I can't add them to Serialize without doing a double delayed restart.

The first one to write the version number without reading it.

And the second one to implement reading of the version number.

It's kind annoying when you have players and saves that you can't erase.

And it just cost you two lines (writer.Write((int)0); // version in Serialize and int version = reader.ReadInt(); in Deserialize).

Altough you are not using it, it will be easier for me and others who want to add private attributes to this class and serialize them.

Thanks a lot.
 
Top