Question: Usage in Game Engine #272
-
|
Hey, I would like to integrate into my game engine: https://github.com/amerkoleci/alimer I had issues with builtin Json serializer as I have custom components that could be registered from different assemblies, would also like to use it for entity component system registration, or even using own attributes like [Range(0, 10)] on properties, etc. Do you have any suggestions for me? Or something Is should be aware ahead? Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
No worries, I've converted this to a discussion. Regarding your actual question, what you're trying to achieve should be possible in principle. All the shape abstractions include an |
Beta Was this translation helpful? Give feedback.
You can take a look at how the attribute validator works under the PolyType.Examples folder. For a more production-grade reference I would suggest looking at how the Nerdbank.MessagePack library is doing attribute resolution.