Nolram
Explore posts from serversNativeAOT Serialization Troubles
Seems a PR regarding this issue has been created!
https://github.com/dotnet/runtime/pull/113684
13 replies
NativeAOT Serialization Troubles
Thank you for your input - I have already tried this, and unfortunately this does not solve the issue. The issue does not seem to be that NAOT is stripping out serialisation logic, but rather that something in the NAOT runtime itself seems to fail.
13 replies
Odd behaviour copying structs
hence my interest in source generators, because right now there's still a bit of boilerplate here and there (such as registering a button with the editing tool to create a new entity of a new given entity type, and now also the clone function). In an ideal world, I'd be able to just create a new entity type that derives from some interface or baseclass and have the rest happen automatically, but that's sadly not possible without advanced reflection (which I can't due to NAOT) or source generation.
58 replies
Odd behaviour copying structs
Higher performance is certainly preferred in my case; but actually the Nr. 1 priority is ease of implementation for someone creating a new entity type, as that's the code on the project that won't be written by me. I.e. minimizing boilerplate and all that
58 replies
Odd behaviour copying structs
Hm, I see. I suppose I'll migrate over the a base class then (I'm not super familiar with them - I come from a procedural & data-oriented background with C++ primarily), I didn't know they actually prevented multi-inheritance.
58 replies