haulage system WIP

This commit is contained in:
2026-03-21 23:39:58 +00:00
parent dcdfb375f0
commit c776b91a44
8 changed files with 277 additions and 1 deletions
@@ -63,6 +63,7 @@ use crate::constants::{
ITILE_SIZE, PATHFINDER_HIERARCHICAL_THRESHOLD_CHUNKS, PATHFINDER_MAX_NODES,
PATHFINDER_PROVISIONAL_NODE_LIMIT, PIXEL_RATIO, TILE_SIZE,
};
use crate::entities::cargo::haul_encumbrance_system;
use crate::entities::item::inventory::{update_encumbrance, InventoryChangedEvent};
use crate::entities::shared_systems::constants::{
CONVOY_DOT_THRESHOLD, ES_DIRECTION_THRESHOLD, HEAD_ON_DOT_THRESHOLD, OCCUPANCY_CROWD_THRESHOLD,
@@ -230,6 +231,7 @@ impl Plugin for PathfindingPlugin {
FixedUpdate,
(
rebuild_tile_occupancy,
haul_encumbrance_system,
update_encumbrance,
collect_pathfinding_dirty_chunks,
invalidate_paths_on_tile_change,