ekolis / ekolis/FrEee

Loose deserialization type matching

Open
#302 1 comment 0 reactions 0 assignees View on GitHub
technical debt
Dominant language
C#
Stars
86
Forks
14
PR merge metrics
No merged PRs in 30d

Description

**What do you want to see?**
If a type can't be found when deserializing, look for types with the same name in a different namespace.

**How would it help players?**
Don't crash when loading old games after types are moved around (e.g. savegames linked to bugs such as #295 after working on #300 or #152)

**Alternatives**
Type aliases for serialization - this would also save space in savegames not writing down long namespace names, but I'm not sure if it would be possible to do without modifying all the types or if static interface methods can access the concrete type name to get a default serialization alias if none is provided.

**Screenshots and mockups**
N/A

**Things to consider**
A cache dictionary for mapping serialized type names to actual types would cut down on repeated reflection calls.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.