lunditoph-siago / Sia.NET

Modern ECS framework for .NET
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

[Enhancement]: Some document please🙏 #3

Open Sieluna opened 7 months ago

Sieluna commented 7 months ago

I hope I can help in creating some documents (it seems you're not particularly keen on writing comments and documentation). The current code requires a lot of time for static analysis 👀 . Do you have any requirements? For example, wiki, a specific e-book, or creating a new repository for documentation?

sicusa commented 7 months ago

Thank you for your assistance! Please feel free to write documents or tutorials.

Currently I'm trying to add support for adding and removing components dynamically by adopting heterogeneous list (see https://github.com/sicusa/Sia.NET/blob/main/Sia/Auxiliary/PolyList.cs and https://github.com/sicusa/Sia.NET/blob/main/Sia.Examples/Example15_PolyList.cs) as underlying struct for entities ('Poly' for 'polymer', might change the name to HList in the future). This might need some architectural change but should not affect user code too much. I will start merging your pull requests and writing some wiki pages once the refactor is done ;)

edit: https://github.com/sicusa/Sia.NET/blob/main/Sia/Auxiliary/PolyList.cs => https://github.com/sicusa/Sia.NET/blob/main/Sia/Auxiliary/HList.cs

https://github.com/sicusa/Sia.NET/blob/main/Sia.Examples/Example15_PolyList.cs => https://github.com/sicusa/Sia.NET/blob/main/Sia.Examples/Example14_HList.cs