diff options
| author | realtradam <[email protected]> | 2021-07-10 03:09:36 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2021-07-10 03:09:36 -0400 |
| commit | aab35c0f098d695b7cf53c14a8b08a9b4a24550d (patch) | |
| tree | 84dd6b9b5787fce8f1bab84761c80818fea783d7 /CHANGELOG.mdown | |
| parent | fea1879f371d5c6d68439b9ab9c64d9a61d92d1c (diff) | |
| download | FelECS-aab35c0f098d695b7cf53c14a8b08a9b4a24550d.tar.gz FelECS-aab35c0f098d695b7cf53c14a8b08a9b4a24550d.zip | |
entities and components now reference each other with objects2.0.0
Diffstat (limited to 'CHANGELOG.mdown')
| -rw-r--r-- | CHANGELOG.mdown | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/CHANGELOG.mdown b/CHANGELOG.mdown index 6f0b570..e4e0e9d 100644 --- a/CHANGELOG.mdown +++ b/CHANGELOG.mdown @@ -8,6 +8,34 @@   +## [2.0.0](https://github.com/realtradam/FelFlame/releases/tag/2.0.0) - 2021-07-10 + +- Entities and Components now reference each other using the objects themselves rather then their id's +```ruby +# before: [email protected][@component_manager].each do |component_id| + # iterate over id's, usually would need to do a lookup to get the component itself +end + +# after: [email protected][@component_manager].each do |component| + # iterate over the components themselves! No need for lookup anymore +end +``` +```ruby +# same for components referencing entities +# before: [email protected] do |entity_id| + #iterate over id's +end + +# after: [email protected] do |entity| + # directly iterate over entities themselves! +end +``` + + ## [1.0.2](https://github.com/realtradam/FelFlame/releases/tag/1.0.2) - 2021-07-09  - Stripped superflous files shrinking gem size significantly |
