genaray / Arch.Extended

Extensions for Arch with some useful features like Systems, Source Generator and Utils.
Apache License 2.0
152 stars 35 forks source link

source generator for unity like memorypack? #30

Open HiWill opened 12 months ago

HiWill commented 12 months ago

hi,first I need to say arch is very very performance and convenient to use! memorypack from cysharp support source generator for unity,so may arch also support it. and it is also good for sterilization!

genaray commented 12 months ago

Thanks!

Well i have choosen Messagepack over Memorypack because Memorypack requires a lot for sourcegen. All arch internal structs and classes would have to be annotated with the attributes and thus memorypack would have to reside directly in arch instead of it being an extension. This would only unnecessarily bloat arch itself and defeat the core aspect of arch. Arch itself is supposed to be bare-minimum.

Messagepack is only a little slower than memorypack, so I would find it unnecessary to upgrade to it. If you still want to have memorypack, you can easily fork arch and add that yourself ^^