Custom preserve() methods for classes #4

Closed
opened 6 years ago by novirium · 2 comments
Owner

At the moment the only preserve process to deal with classes is to go through and save their attributes, then hand them back later with one of the RestoreMethods. This doesn't allow support for a class that might have a temporary or reconstructable attribute that isn't preservable. Adding a way for a class to register its own method used when preserving it would allow this.

At the moment the only preserve process to deal with classes is to go through and save their attributes, then hand them back later with one of the `RestoreMethods`. This doesn't allow support for a class that might have a temporary or reconstructable attribute that isn't `preservable`. Adding a way for a class to register its own method used when preserving it would allow this.
novirium added the [type] Enhancement [status] Review labels 6 years ago
Poster
Owner

Plan is to implement this with the new PreservableType structure - recording preserve and restore methods independently for each class/type.

Plan is to implement this with the new PreservableType structure - recording preserve and restore methods independently for each class/type.
Poster
Owner

Support for generic preserve and restore methods added in a0e8071f5f

Support for generic preserve and restore methods added in a0e8071f5f
novirium closed this issue 6 years ago
novirium added [status] Done and removed [status] Review labels 6 years ago
Sign in to join this conversation.
Loading…
There is no content yet.