Closed reejk closed 4 months ago
Thx, for report. Good case to reproduce.
Agree, this should be supported. Will have a look. As an instant workaround you can [Ignore] the field. See:
I came to the preliminary conclusion that the JSON Mapper (serializer) will ignore generic structs (and classes & interfaces) in future versions. Note: JSON Mapping is implemented in Friflo.Json.Fliox.
In case of generic classes / interfaces: Only known collection types - e.g. List<> or IList<> will be mapped.
Fixed the issue.
For now you need to reference the fixed nuget package or use the [Ignore]
attribute.
<PackageReference Include="Friflo.Json.Fliox" Version="1.0.2" />
The next release of Friflo.Engine.ECS
will include this version.
Don't want to publish Friflo.Engine.ECS
right now as I want to release Friflo.Engine.ECS
v2.0.0 in the next two weeks.
Fix is integrated in Tag engine-v2.0.0-preview.1 nuget Friflo.Engine.ECS/2.0.0-preview.1
EntityStore cannot be initialized when adding a component that references a generic struct.
These types:
Causing this exception: