Add campfire persistence state

This commit is contained in:
2026-05-17 19:09:55 -07:00
parent c60b975294
commit 7291c4844b
8 changed files with 171 additions and 2 deletions
+6
View File
@@ -302,6 +302,12 @@ placeholder. It is attached above the fire, starts inactive, and follows the
same replicated lit-state visual update path as fire light intensity so final
smoke or ember assets can be assigned later without changing gameplay code.
Campfire persistence uses the shared `UAgrarianPersistentActorComponent` world
actor path. `AAgrarianCampfire` implements the persistence-state provider hook
to write lit state, remaining fuel, cooking enabled state, required cook time,
and cooking progress into numeric save state, then restores those values before
reapplying the fire visual state on load.
The first real-weather adapter is `UAgrarianWeatherProviderSubsystem`. It uses
Open-Meteo forecast requests keyed by tile center latitude/longitude, parses the
current temperature, daily low/high, precipitation, wind, humidity, cloud cover,