blob: 7f42aacc1c7ea763e3e9b87a1124efb23d97bb11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# ChangeLog
###### [major.minor.bugfix] - year-month-day





## [4.0.0](https://github.com/realtradam/FelFlame/releases/tag/4.0.0) - 2021-12-30

- Removed all ids as they were not used

- Component method `.attrs` was renamed to `.to_h`
- Renamed the `data` accessor to `._data`

- Classes and Modules which used a data array now have the entire set of array methods available to their respective Classes and Modules

- Replaced all instances of `sort_by!` with `sort_by` for compatibility with DragonRuby
- Minor optimizations such as less array duplication
## [3.0.0](https://github.com/realtradam/FelFlame/releases/tag/3.0.0) - 2021-07-12

- The Scene alias was changed from ```FelFlame::Sce``` to ```FelFlame::Scn``` as it is more intuitive.
## [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:
@entity.components[@component_manager].each do |component_id|
# iterate over id's, usually would need to do a lookup to get the component itself
end
# after:
@entity.components[@component_manager].each do |component|
# iterate over the components themselves! No need for lookup anymore
end
```
```ruby
# same for components referencing entities
# before:
@component.entities.each do |entity_id|
#iterate over id's
end
# after:
@component.entities.each 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
## [1.0.1](https://github.com/realtradam/FelFlame/releases/tag/1.0.1) - 2021-07-09

- Defining attributes in components are no longer allowed to overwrite methods
## [1.0.0](https://github.com/realtradam/FelFlame/releases/tag/1.0.0) - 2021-07-09

- Initial release
|