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.
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.