Commit graph

8 commits

Author SHA1 Message Date
Josh Perry
de35fdc450 Fixed removed list not being cleared
After an entity has a component removed from it, the apply function wasn't removing it from the removed list.
This had weird side-effects like the inability to readd components after they were removed.

For example:

    entity:give(Foo):apply()
    entity:remove(Foo):apply()
    entity:give(Foo):apply() -- This line would fail to add the Foo component again.
2018-03-13 17:44:05 +00:00
Josh Perry
54af717df8 Fix for Entity:has not returning false if the component doesn't exist
The documentation states that Entity:has will return false if the component doesn't exist and true if it does.
However, the previous behaviour was to return nil if the component doesn't exist.
2018-03-13 14:30:25 +00:00
Justin van der Leij
a50e3caf8b Components get removed properly now 2018-03-13 13:00:46 +01:00
Justin van der Leij
7053d91c80 Documented :destroy 2018-03-07 11:53:26 +01:00
Justin van der Leij
63d8c39b31 Holy shit I just wrote documentation 2018-03-07 11:05:30 +01:00
Justin van der Leij
100d6320c7 Allowed for entities to be in multiple systems. Fixed the removal issue. 2018-02-20 23:38:04 +01:00
Justin van der Leij
2d21fe97a5 Polishing 2018-01-30 12:45:35 +01:00
Justin van der Leij
58549d6b0a Initial commit 2018-01-25 15:19:31 +01:00