-
Notifications
You must be signed in to change notification settings - Fork 146
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
Load item and arrow entities from chunk save (#102) #125
Load item and arrow entities from chunk save (#102) #125
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #125 +/- ##
===========================================
- Coverage 58.76% 58.55% -0.21%
===========================================
Files 60 61 +1
Lines 8230 8259 +29
===========================================
Hits 4836 4836
- Misses 3394 3423 +29
Continue to review full report at Codecov.
|
What's your idea for spawning the loaded entities? |
I'm not decided yet, but here's what I'm thinking: Since level deserialization is in However, consider the case where an an entity is stored in Chunk |
Storing entities in As for the entity duplication issue, I don't think there's a clean way around this until world persistence is implemented. I plan to do this within the next few weeks, so the issue shouldn't be present for that long. Might want to add a comment that notes this, though, so we don't forget. |
Codecov Report
@@ Coverage Diff @@
## develop #125 +/- ##
===========================================
- Coverage 58.76% 58.55% -0.21%
===========================================
Files 60 61 +1
Lines 8230 8259 +29
===========================================
Hits 4836 4836
- Misses 3394 3423 +29
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## develop #125 +/- ##
==========================================
- Coverage 58.76% 58.66% -0.1%
==========================================
Files 60 61 +1
Lines 8230 8324 +94
==========================================
+ Hits 4836 4883 +47
- Misses 3394 3441 +47
Continue to review full report at Codecov.
|
Would it make sense to add the |
A separate system makes the most sense in this case, yes. You should probably also use |
Yeah that's what I'm doing atm, though it's fetching the |
Still a separate system, I think, because the match expression will grow very long with more entities being added. Also, the behavior is separate from chunk loading itself, so using another system would be cleaner. |
Oh yeah I'm for sure separating it, I was just wondering if there'd be a purpose in using |
Oh, sorry for misunderstanding.
If you use the separate system, there shouldn't be a need to use it. The main motivation for utilizing it is if you need access to tons of components which would be unclean to write in a |
Hmm so if I add |
You should just be able to remove the |
…alid velocity or position
Ready for review |
Thanks! |
#102