Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per entity Events #2116

Closed
wants to merge 39 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
525ccd5
Clean up on Examples README
alice-i-cecile May 5, 2021
fcf73a4
Add per_entity_events stub example
alice-i-cecile May 5, 2021
76c83a2
Basic example description
alice-i-cecile May 5, 2021
b00edd4
Added missing file extension
alice-i-cecile May 5, 2021
9119a69
Input dispatch example skeleton
alice-i-cecile May 5, 2021
cdd98a0
Cleaned up InteractableBundle
alice-i-cecile May 5, 2021
4786931
Added lifetimes to satisfy borrow checker
alice-i-cecile May 5, 2021
b1bd2e5
Added better impl plan notes
alice-i-cecile May 5, 2021
d36a304
Spawn InteractableBundle entities
alice-i-cecile May 5, 2021
36faf02
Color updating system
alice-i-cecile May 5, 2021
4ca4373
Should demo how to use raw Events
alice-i-cecile May 5, 2021
f39accd
Manual event reader syntax
alice-i-cecile May 5, 2021
b552aaa
Clear componentized Events too
alice-i-cecile May 5, 2021
3ae1b2d
Example mostly works
alice-i-cecile May 5, 2021
eae4f97
Prevent addition overflow
alice-i-cecile May 5, 2021
922a298
Code quality cleanup
alice-i-cecile May 5, 2021
61b0bef
Fixed double-counting by storing an EventReader
alice-i-cecile May 5, 2021
489294e
Removed left-right controls for brevity
alice-i-cecile May 6, 2021
1b9c1cc
Less colors, more brevity
alice-i-cecile May 6, 2021
a952c1b
Simpler input handling
alice-i-cecile May 6, 2021
45478f9
Quick and easy keycode math
alice-i-cecile May 6, 2021
532a544
Foundations for EventReader etc Query parameters
alice-i-cecile May 6, 2021
aceea35
Nearly-working impl of EventWriter<T> components
alice-i-cecile May 6, 2021
56eece5
Removed lifetime by storing StorageType directly
alice-i-cecile May 8, 2021
77dc531
Use into_inner to properly convert Mut to &mut
alice-i-cecile May 8, 2021
eda6ffa
Add EventWriter::new() to allow for creation outside of module
alice-i-cecile May 8, 2021
769edc1
Removed redundant storage type in EventWriterState
alice-i-cecile May 8, 2021
92358df
Fixed visibility to make everything compile!
alice-i-cecile May 8, 2021
4b6cd8c
Code organization
alice-i-cecile May 8, 2021
ac56e12
Renamed State to BufferState for clarity
alice-i-cecile May 8, 2021
44e8dcb
Added comments explaining need for tiny map functions
alice-i-cecile May 8, 2021
b454712
Fixed fetch for EventReader
alice-i-cecile May 8, 2021
a4fa818
Added EventConsumer
alice-i-cecile May 8, 2021
88052f3
Added EventConsumer example
alice-i-cecile May 8, 2021
feb3d37
Cleaned up example by organizing code into modules
alice-i-cecile May 8, 2021
cd4b83c
Added test for Event* as system parameters
alice-i-cecile May 8, 2021
3c8eb92
Moved back to #[derive(SystemParam)]
alice-i-cecile May 8, 2021
f8a36c1
Revert "Clean up on Examples README"
alice-i-cecile May 11, 2021
2e31afd
Add per-entity-events example to README.md
alice-i-cecile May 11, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ path = "examples/ecs/change_detection.rs"
name = "event"
path = "examples/ecs/event.rs"

[[example]]
name = "per_entity_events"
path = "examples/ecs/per_entity_events.rs"

[[example]]
name = "fixed_timestep"
path = "examples/ecs/fixed_timestep.rs"
Expand Down
Loading