You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Types array can contain any type implementing a specific interface, that can't be known ahead of time. It can also cantain any number of types. Each array in the components contains data corresponding to that type. The sizes of components arrays will always match.
I need to deserialize this data using custom deserializer and get a set of arrays with that data.
When using Newtosoft.Json I can do something like this:
And then I can pass this data further and work with that. Context: it is scene serialization for game engine, where scene structure and set of used components depends on user and can't be known ahead of time.
It looks like there is no way to deserialize something using VYaml when data types are not known ahead of time, or am I missing something? Do you plan to add overloads of context.Deserialize methods, that will get Type as a second parameter?
The text was updated successfully, but these errors were encountered:
you would need to write a custom resolver which maps dynamically interfaces and abstract types onto the real type that is in it
and generate the code to register teh allowed mappings of the types
I have the following data structure:
Types array can contain any type implementing a specific interface, that can't be known ahead of time. It can also cantain any number of types. Each array in the components contains data corresponding to that type. The sizes of components arrays will always match.
I need to deserialize this data using custom deserializer and get a set of arrays with that data.
When using Newtosoft.Json I can do something like this:
And then I can pass this data further and work with that. Context: it is scene serialization for game engine, where scene structure and set of used components depends on user and can't be known ahead of time.
It looks like there is no way to deserialize something using VYaml when data types are not known ahead of time, or am I missing something? Do you plan to add overloads of context.Deserialize methods, that will get Type as a second parameter?
The text was updated successfully, but these errors were encountered: