Commit graph

184 commits

Author SHA1 Message Date
Pablo Ariel Mayobre
cc0fd1614c Serializable component
You can remove the component to tell Concord an Entity shouldn't be serialized.

It's given automatically on Entity creation, but this can be disabled by changing Entity.SERIALIZE_BY_DEFAULT to false.
2023-02-14 22:20:34 -03:00
Pablo Ariel Mayobre
892f4d4700 Error handling overhaul 2023-02-14 22:20:34 -03:00
Pablo Ariel Mayobre
743d662ef9 Replaced Pools with Filters
Filters allow for a Pool constructor (defaults to Lists) that can be used to define Custom Pools.

The constructor is a function that takes the Filter Definition and returns a Custom Pool with these functions:

:add(e) - Add the Entity to the pool
:remove(e) - Remove the Entity from the pool
:has(e) boolean - Checks if the Entity exists in the pool
:clear() - Clears the Pool from Entities

Fixes #40
2023-02-14 22:20:34 -03:00
Pablo Ariel Mayobre
07bd5d0f28 Fix utils.loadNamespace when passed a table 2023-02-14 22:20:34 -03:00
Pablo Ariel Mayobre
c4594da19d Add Component:removed() callback
Fixes #37

I also added a reference to the Entity inside the Component which will help with #38
2023-02-14 22:20:34 -03:00
Pablo Ariel Mayobre
50249d5ad3 Removed deprecated functionality
Removed hasName/getName on Systems and Worlds.

Removed Entity.__components since it had a duplicate version of the components stored in the Entity itself.
2023-02-14 22:20:34 -03:00
Pablo Ariel Mayobre
695cc2dfe3 Add Component Negation
Fixes #32
2023-02-14 22:20:34 -03:00
Pablo Ariel Mayobre
89eab3fb72 List.sort
Fixes #33
2023-02-14 22:20:34 -03:00
Justin van der Leij
a45d89457b
Merge pull request #66 from wolfboyft/master
Fix bug where loading namespaces using folder/init.lua entries would only work if "folder" was 3 characters
2022-10-17 21:53:30 +02:00
Tachytaenius
940870318d
Fix bug where loading namespaces using folder/init.lua entries would only work if "folder" was 3 characters 2022-10-17 20:17:54 +01:00
Justin van der Leij
821b36c903
Merge pull request #46 from john-cheesman/correct-readme-code
Correct syntax in Systems example code
2022-10-17 15:12:18 +02:00
Justin van der Leij
7a4bfaf33c
Merge pull request #59 from josh-perry/fix-readme-docs-link
Fixed docs link in README
2022-06-01 17:51:12 +02:00
Josh Perry
2acb1458f2 Fixed docs link in README 2022-05-31 20:20:54 +01:00
Justin van der Leij
edc1d2fdbc Fix documentation page building workflow 13 2021-11-02 20:10:14 +01:00
Justin van der Leij
4313dc7856 Fix documentation page building workflow 12 2021-11-02 17:27:18 +01:00
Justin van der Leij
9c22986501 Fix documentation page building workflow 11 2021-11-02 17:23:53 +01:00
Justin van der Leij
73177f4048 Fix documentation page building workflow 10 2021-11-02 17:21:51 +01:00
Justin van der Leij
6ce714ce14 Fix documentation page building workflow 9 2021-11-02 17:21:22 +01:00
Justin van der Leij
e141a6183b Fix documentation page building workflow 8 2021-11-02 17:18:57 +01:00
Justin van der Leij
6329e09138 Fix documentation page building workflow 7 2021-11-02 17:16:51 +01:00
Justin van der Leij
cdf425d301 Fix documentation page building workflow 6 2021-11-02 17:08:25 +01:00
Justin van der Leij
c7625ad376 Fix documentation page building workflow 5 2021-11-02 17:02:38 +01:00
Justin van der Leij
65aae3c2ba Fix documentation page building workflow 4 2021-11-02 16:57:08 +01:00
Justin van der Leij
297b30aa50 Fix documentation page building workflow 3 2021-11-02 16:55:04 +01:00
Justin van der Leij
9aaff0fbcc Fix documentation page building workflow 2 2021-11-02 16:37:30 +01:00
Justin van der Leij
b701493a27 Fix documentation page building workflow 2021-11-02 16:32:24 +01:00
Justin van der Leij
b53f950e3e Add documentation page building workflow 2021-11-02 16:30:23 +01:00
John Cheesman
fd558dd3fe
Correct syntax in Systems example code 2021-05-05 18:32:04 +01:00
Pablo Ariel Mayobre
eb82c3c580
Update version
This will be version 3.0 of Concord
2021-01-09 19:20:03 -03:00
Pablo Ariel Mayobre
1325c4b445
Merge pull request #31 from DanielPower/master
Fix error in readme
2021-01-08 03:49:32 -03:00
Pablo Ariel Mayobre
d5c551046b
Merge pull request #24 from speakk/patch-1
Fix a typo in README.
2021-01-08 03:49:15 -03:00
Daniel Power
2196a41e71 Fix error in readme 2020-11-15 23:44:15 -03:30
Justin van der Leij
dd072adbe9
Merge pull request #30 from josh-perry/master
Regenerated docs
2020-08-18 16:24:21 +02:00
Josh Perry
7979226c33 Regenerated docs 2020-08-18 15:20:56 +01:00
Justin van der Leij
0897b1e4f9
Merge pull request #29 from Tjakka5/dev
Dev
2020-08-18 11:27:37 +02:00
Tjakka5
3e9c596187 Fix mistakes in readme 2020-05-02 20:51:15 +02:00
Tjakka5
c95a1f2768 Update license 2020-05-02 20:44:58 +02:00
Tjakka5
d56821205d Make repo submodule friendly 2020-05-02 20:44:33 +02:00
Tjakka5
c889b15d44 Remove old examples 2020-05-02 20:42:26 +02:00
Justin van der Leij
b906e2a910 Update docs 2020-03-16 10:35:55 +01:00
Pablo Ariel Mayobre
f640258852
Fix component:serialize can return nil 2020-03-15 01:04:44 -03:00
Pablo Ariel Mayobre
78dc7ee937
Fixed some error messages 2020-03-15 00:20:06 -03:00
Pablo Ariel Mayobre
d8621e4070
Fix serialization function to guard internal values 2020-03-14 19:09:23 -03:00
Pablo Ariel Mayobre
079c1d0e18
Utils.shallowCopy as a default serializer/deserializer for Components 2020-03-14 18:45:15 -03:00
Pablo Ariel Mayobre
9ae805aa43
Fixed: Pool:evaluate should bypass Pool:add filter check 2020-03-14 14:56:33 -03:00
Pablo Ariel Mayobre
16e111176e
Added Utils.loadNamespace
Deleted the previous Concord.loadComponents/Systems/Worlds
2020-03-14 14:55:11 -03:00
Pablo Ariel Mayobre
c640641b09
CONCORD IS DEAD
Long live Concord!!
2020-03-14 07:45:25 -03:00
Tjakka5
5dffe04b72 Fix flushing failing 2020-01-18 19:44:09 +01:00
Tjakka5
5252b0901b Merge branch 'master' of https://github.com/Tjakka5/Concord 2020-01-18 19:27:07 +01:00
Tjakka5
275d54726d Allow emits within emits 2020-01-18 19:26:38 +01:00