veloren/server/src
Imbris c36d6e873f Fix issue with the region subscription system not updating on view
distance changes (until the player crossed a chunk boundary and
triggered the normal update).

This introduces a `ViewDistance` struct that provides an abstraction
around limiting the rate the view distance can be cycled up and down.
This helps avoid unnecessary sending, deleting, and then resending of
synced things like entities (the client will still delete its terrain
locally and re-request it though).

The second part of this fix is storing the last view distance in the
`RegionSubscription` struct and then updating region subscriptions if
this doesn't match the current view distance in the `Presence`
component.
2022-08-25 23:24:43 -04:00
..
events remove print 2022-08-24 23:38:18 +02:00
migrations Moved items from 'items.crafting_ing.modular' to 'items.modular.weapon' (no assets). 2022-05-16 15:11:44 -04:00
persistence seachapel 2022-08-24 21:50:53 +00:00
rtsim Make selfish bastards ambush people when they're alone. 2022-08-17 23:50:09 +02:00
settings Fix typos 2022-07-15 18:59:37 +02:00
sys Fix issue with the region subscription system not updating on view 2022-08-25 23:24:43 -04:00
weather Fix compilation with worldgen turned off. 2022-08-11 20:27:25 +00:00
automod.rs Relaxed automod somewhat 2022-08-23 10:03:06 +01:00
character_creator.rs Change animal species to have only one inventory slot 2022-05-29 23:53:00 +00:00
chunk_generator.rs Added Calendar for temporal events based on the real-world calendar 2021-12-20 18:03:52 +00:00
chunk_serialize.rs renamings and using unstable sort according to a code review 2022-05-11 21:50:41 +02:00
client.rs Use send_fallible in notify_client implementation to document that any errors are ignored (and use if let instead of map) 2022-08-20 18:47:09 -04:00
cmd.rs Ensure that the client clears pending trades on its side when exiting to 2022-08-20 18:47:09 -04:00
connection_handler.rs Fix typos 2022-07-15 18:59:37 +02:00
data_dir.rs Group editable server settings into one struct that is stored in the ecs, don't expose DataDir, use Uuid in the whitelist instead of usernames, replace Banlist record tuple with new type with named fields, remove commented code 2020-10-10 02:10:32 -04:00
error.rs * Replaced diesel with rusqlite and refinery 2021-04-13 22:05:47 +00:00
input.rs apply some clippy fixes that comes with the new toolchain version 2021-09-24 23:18:18 +02:00
lib.rs Update changelog, cargo fmt 2022-08-21 12:10:20 -04:00
location.rs List locations on empty command 2022-02-17 16:01:18 +00:00
lod.rs Fixed LoD on test worlds 2022-05-11 19:06:41 +01:00
login_provider.rs Convert away from IdvStorage to mixture of VecStorage and DenseVecStorage 2022-08-08 00:38:20 -04:00
metrics.rs Remove tick_count since we can already get a count of ticks via 2022-06-16 22:08:54 -04:00
pet.rs Shared and persistent waypoints 2022-02-20 10:10:18 +00:00
presence.rs Fix issue with the region subscription system not updating on view 2022-08-25 23:24:43 -04:00
settings.rs Discord Activity 2022-08-15 15:58:37 +00:00
state_ext.rs Fix issue with the region subscription system not updating on view 2022-08-25 23:24:43 -04:00
terrain_persistence.rs Remove unnecessarily qualified paths 2022-07-15 14:49:46 +02:00
test_world.rs Fix imports 2022-02-21 03:46:02 +02:00
wiring.rs Convert away from IdvStorage to mixture of VecStorage and DenseVecStorage 2022-08-08 00:38:20 -04:00