-
Notifications
You must be signed in to change notification settings - Fork 0
Persistent world #68
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
Persistent world #68
Changes from 20 commits
6f0c521
f935bc7
4f25c96
363dd9f
ef014d8
958015c
f4e1819
b454e7b
4d63616
605b55d
e5e0dd6
d2bee58
60d01ec
ac7a84f
59b019e
807c9de
12b02e0
bba7e34
101985f
cc43020
8e72f00
ac3d050
073e5f5
2098fbb
dfb0bcb
fe9ddf0
d6550e7
1a71526
9af1d5e
9bec5bf
ad7f121
21c1af2
534d8d0
e208173
a02e4ce
0257e65
2618536
9b7df6d
70fcc55
dc0a562
2238ec5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,5 @@ | |
| # vim stuff | ||
| tree-sitter-rust | ||
| *-E | ||
|
|
||
| backups/ | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,7 +89,7 @@ pub fn handle_chunk_mesh_update_events_system( | |
| "Received chunk mesh update event for chunk {:?}", | ||
| event.chunk_position | ||
| ); | ||
| let chunk_option = chunk_manager.get_chunk(event.chunk_position); | ||
| let chunk_option = chunk_manager.get_chunk(&event.chunk_position); | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unrelated refactoring. |
||
| match chunk_option { | ||
| Some(chunk) => { | ||
| tasks.task_list.push(FutureChunkMesh { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ pub fn receive_message_system( | |
| mut server: ResMut<RenetServer>, | ||
| mut player_states: ResMut<player_resources::PlayerStates>, | ||
| mut past_block_updates: ResMut<terrain_resources::PastBlockUpdates>, | ||
| mut chunk_manager: ResMut<ChunkManager>, | ||
| mut request_queue: ResMut<terrain_resources::ClientChunkRequests>, | ||
| #[cfg(feature = "chat")] mut chat_message_events: MessageWriter< | ||
| chat_events::PlayerChatMessageSendEvent, | ||
|
|
@@ -20,6 +21,7 @@ pub fn receive_message_system( | |
| "Received block update from client {} {} {:?}", | ||
| client_id, position, block | ||
| ); | ||
| chunk_manager.update_block(position, block); | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💀
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Didn't spot this one as the clients always receive world updates. |
||
| past_block_updates | ||
| .updates | ||
| .push(terrain_events::BlockUpdateEvent { position, block }); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CLI arg parsing