1
0
Fork 0
mirror of https://github.com/Reuh/ubiquitousse.git synced 2025-10-27 17:19:31 +00:00

ecs: removed .entity in components, components do not need to be tables, pass entity as a new argument in several callbacks, remove System.methods, add System:callback, System:emit and System:reorder, add System.w, improve documentation

The component methods system was awkward and didn't give much benefit compared to just using methods on Systems. Plus now we really only have data in entities.

Since we don't have component methods, the callback system had to be replaced; I integrated it with the default System methods since it's a relatively common behavior.
This commit is contained in:
Étienne Fildadut 2021-12-26 18:35:16 +01:00
parent af3bd51cb3
commit 9d2e886609
15 changed files with 407 additions and 246 deletions

View file

@ -1597,7 +1597,7 @@ its sibling systems (i.e. completely stop the propagation of the event).</li>
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2021-12-26 18:13:01 </i>
<i style="float:right;">Last updated 2021-12-26 18:43:30 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>