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

18 commits

Author SHA1 Message Date
99a19b11c5 ecs: simplify linked list implementation 2022-10-11 14:52:56 +09:00
859970c7f7 Add ecs:get 2022-09-16 19:37:17 +09:00
ce7e54fb69 ecs: add System:onUpdateEnd, System:onDrawEnd 2021-12-27 14:12:08 +01:00
86373c98de ecs: always pass entity as first arguments in callback for consistency, add System.component to set system component name independently from System.name 2021-12-27 13:16:08 +01:00
027b6b9bb2 ecs: System.filter defined using tables use all instead of any 2021-12-27 12:22:24 +01:00
9d2e886609 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.
2021-12-26 18:43:40 +01:00
ef413838d4 Keep metatables in ecs.default copy 2021-12-25 23:00:50 +01:00
d4e2a1d94a Add doc for ecs, asset 2021-12-25 17:08:08 +01:00
c793617ded Update some ecs comments 2021-12-23 22:03:44 +01:00
4b75f21e52 Remove backend system and ctruLua support
Since I only use the LÖVE backend anyway, this simplifies the code.
Tidied some code.
2021-07-18 19:30:43 +02:00
366bb63ed5 Fix error if onRemove in subsystem call :remove again 2021-04-13 01:55:29 +02:00
f607058753 ecs overhaul part 2
Various improvements made as they were needed:
* only gives the entity system table as argument in callback as that's the only thing needed most of the time
* to access the entity, a .entity field in now defined in every entity system table
* filter use ecs.any when given a table; allow booleans for always/never filter
* removed .m table from entity
* added ability to define methods on entities system table directly; allows to re-implement previous .m functionality (will provide some example systems in a later commit)
2021-04-13 01:35:43 +02:00
3a94c6b60d ecs overhaul
Main incompatibility is passing the table entity[system.name] as first argument in a lot of callbacks
2021-02-18 17:17:43 +01:00
d85424d866 Add triggerThresold (0.5 by default) for buttons associated with axes, grabbing terminology change
courtesy of Lenade Lamidedi
2020-04-02 21:02:09 +02:00
6dc939bd16 Define uqt.ecs callback order 2019-12-29 20:33:29 +01:00
15dfb18c65 Button combinations, create signal registry per scene 2019-12-28 16:13:52 +01:00
b5324faace Add ecs.scene 2019-12-24 19:52:48 +01:00
16e533d176 Code reorganization, added uqt.ecs, removed LÖVE duplicates (uqt.audio, uqt.draw, uqt.filesystem) 2019-12-24 19:05:50 +01:00