Commit graph

53 commits

Author SHA1 Message Date
Justin van der Leij
3b539e8d8b
Update README.md 2018-04-07 18:35:41 +02:00
Justin van der Leij
2116706fee Merge branch 'master' of https://github.com/Tjakka5/Concord 2018-04-07 18:24:54 +02:00
Justin van der Leij
6c98c259e4 Moved some files 2018-04-07 18:24:52 +02:00
Justin van der Leij
637f03b78e
Update README.md 2018-04-07 18:23:37 +02:00
Justin van der Leij
fb4dfcf76e
Update README.md 2018-04-07 18:23:23 +02:00
Justin van der Leij
57a4f603a0
Update README.md 2018-04-07 18:22:22 +02:00
Justin van der Leij
807bef1c49
Update README.md 2018-04-07 18:21:42 +02:00
Justin van der Leij
281bb53a5b Added type checking 2018-04-07 01:42:00 +02:00
Justin van der Leij
fda6cd7237 Removed the inherit option for components. They are functional by default now
Turns out doing a 'setmetatable' only makes the code 0.00038% slower. Effectively making the previous code slower because of the branches.

Who would've tought
2018-04-07 00:00:54 +02:00
Justin van der Leij
a173de40eb Removed a debug whoopsie 2018-04-06 23:55:27 +02:00
Justin van der Leij
42213fcdf9 Fixed the love.run loop and moved it into its own file. Fixed examples 2018-04-06 23:53:37 +02:00
Justin van der Leij
afe6573b18 Made the library loading passtrough work properly 2018-04-06 23:46:37 +02:00
Justin van der Leij
7a5050b016 Fixed the love.run loop and moved it into its own file 2018-04-06 23:43:56 +02:00
Justin van der Leij
333f43eff9 Fixed the example 2018-04-06 23:39:15 +02:00
Justin van der Leij
e1b64e2376 Made the event loop 11.0 friendly 2018-04-06 12:33:16 +02:00
Justin van der Leij
03648fab63 Renamed some more 2018-04-06 12:32:26 +02:00
Justin van der Leij
795201d93d
Delete system.lua 2018-04-06 12:30:28 +02:00
Justin van der Leij
1322089adc
Delete pool.lua 2018-04-06 12:30:21 +02:00
Justin van der Leij
6fe5df8402
Delete list.lua 2018-04-06 12:30:14 +02:00
Justin van der Leij
86c2950972
Delete instance.lua 2018-04-06 12:30:08 +02:00
Justin van der Leij
5f4d91ad90
Delete init.lua 2018-04-06 12:29:59 +02:00
Justin van der Leij
2917c0f43f
Delete entity.lua 2018-04-06 12:29:53 +02:00
Justin van der Leij
0971a0c096
Delete component.lua 2018-04-06 12:29:47 +02:00
Justin van der Leij
bad5e2c0ab
Delete conf.lua 2018-04-06 12:29:22 +02:00
Justin van der Leij
d96b3ded5c
Delete main.lua 2018-04-06 12:29:15 +02:00
Justin van der Leij
5afe539d86
Redoing folder layouts 2018-04-06 12:28:42 +02:00
Justin van der Leij
167f432bc9
Update README.md 2018-04-06 12:18:47 +02:00
Justin van der Leij
01e97c8072 Made the example work properly with Love 11.0 2018-04-04 12:46:37 +02:00
Justin van der Leij
a11cb94aaa Fixed an issue where :setSystem would not acknowledge which system to work on 2018-04-04 12:45:44 +02:00
Justin van der Leij
4e438137a3 Merge Issues 2018-04-04 12:43:50 +02:00
Justin van der Leij
67f32680b5 Fixed an issue where :setSystem did not acknowledge which system it was setting 2018-04-04 12:38:18 +02:00
Justin van der Leij
2b377bea24 Fixed a little typo and systems not behaving correctly when added to a Instance multiple times. 2018-03-24 00:15:42 +01:00
Justin van der Leij
acd77fafa5 Removed the need for manual flushing. Systems now know about their instance 2018-03-23 23:40:35 +01:00
Justin van der Leij
358a455c8b
Merge pull request #5 from josh-perry/fix_removed_list_not_clearing
Fixed removed list not being cleared
2018-03-13 18:58:21 +01:00
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
Justin van der Leij
5949b542ea
Merge pull request #4 from josh-perry/fix_entity_has_nil
Thanks for the pull request. I will merge it.

There may be more inconsistencies like this that I will check and fix.
2018-03-13 17:05:40 +01: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
d72bc18b0c proper capitalization is important 2018-03-09 15:40:43 +01:00
Justin van der Leij
e1b860222e Cleaned up lists 2018-03-09 15:39:02 +01:00
Justin van der Leij
eeadfc8817 Fixed removal 2018-03-09 15:34:56 +01:00
Justin van der Leij
7053d91c80 Documented :destroy 2018-03-07 11:53:26 +01:00
Justin van der Leij
4b8b6a6f88 Reverted a small whoopsie with Entity removal 2018-03-07 11:08:00 +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
8810005217 Did work on events 2018-03-06 13:59:25 +01:00
Justin van der Leij
fa22f6f6f6 Some more work on system-instance interaction 2018-02-21 13:38:27 +01:00
Justin van der Leij
0d5f05fa64 Fixed some things regarding deregistering 2018-02-20 23:46:11 +01:00
Justin van der Leij
fae3c4a427 Allowed for systems to atach multiple times under different callbacks 2018-02-20 23:43:48 +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
c750ea119f Made systems classes instead of singletons 2018-02-16 15:03:07 +01:00