Nolram
Nolram
Explore posts from servers
CC#
Created by Nolram on 3/16/2025 in #help
NativeAOT Serialization Troubles
... and merged!
13 replies
CC#
Created by Nolram on 3/16/2025 in #help
NativeAOT Serialization Troubles
Seems a PR regarding this issue has been created! https://github.com/dotnet/runtime/pull/113684
13 replies
CC#
Created by Nolram on 3/16/2025 in #help
NativeAOT Serialization Troubles
13 replies
CC#
Created by Nolram on 3/16/2025 in #help
NativeAOT Serialization Troubles
I believe I have - but I can try again, just in case.
13 replies
CC#
Created by Nolram on 3/16/2025 in #help
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
CC#
Created by Nolram on 3/16/2025 in #help
NativeAOT Serialization Troubles
I have read this and followed their documentation, but as I just mentioned, the issue still occurs. Other MemoryPack serialisations work; just not this stack of generic container & interface-derived class
13 replies
CC#
Created by Nolram on 3/16/2025 in #help
NativeAOT Serialization Troubles
This issue is happening on .NET 9, so clearly something still seems wrong
13 replies
CC#
Created by Nolram on 3/3/2025 in #help
Odd behaviour copying structs
In a larger project - ECS for the win, absolutely
58 replies
CC#
Created by Nolram on 3/3/2025 in #help
Odd behaviour copying structs
ECS just makes everything more complicated in this project where the total project complexity is not expected to be very large.
58 replies
CC#
Created by Nolram on 3/3/2025 in #help
Odd behaviour copying structs
I have, and it's not suitable for this project due to the target demographic of programmer, additional overhead to tooling creation, etc etc
58 replies
CC#
Created by Nolram on 3/3/2025 in #help
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
CC#
Created by Nolram on 3/3/2025 in #help
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
CC#
Created by Nolram on 3/3/2025 in #help
Odd behaviour copying structs
I'm aware you can; I just avoid it :)
58 replies
CC#
Created by Nolram on 3/3/2025 in #help
Odd behaviour copying structs
Oh I was talking about multi-inheritance in the sense of inheritance depth, not necessarily amount of interfaces implemented at once
58 replies
CC#
Created by Nolram on 3/3/2025 in #help
Odd behaviour copying structs
I always thought classes were moreso about overriding base behaviour rather than having to conform to a template
58 replies
CC#
Created by Nolram on 3/3/2025 in #help
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
CC#
Created by Nolram on 3/3/2025 in #help
Odd behaviour copying structs
I didn't consider the interface to actually exist within itself; just to be a template to implement.
58 replies
CC#
Created by Nolram on 3/3/2025 in #help
Odd behaviour copying structs
Hmmm, okay. I generally considered Interfaces as essentially just a "contract" that a type has to implement in order to qualify generically as that interface.
58 replies
CC#
Created by Nolram on 3/3/2025 in #help
Odd behaviour copying structs
Eh, is it? I just have a single interface that my entities have to implement for some basic engine callbacks
58 replies
CC#
Created by Nolram on 3/3/2025 in #help
Odd behaviour copying structs
Hm, that seems to go a bit into multi-inheritance which I generally try to avoid; so instead may be better
58 replies