HitboxDisplay lots of broken stuff

This commit is contained in:
ThomasCharester committed 2026-11-09 02:51:36 +03:00
1 parent 9203f269db
commit f40a10912c
78 files changed
+12768 -309066

No files matched your search

@@ -120,9 +120,14 @@ namespace Code.OfficeGame.BattleMode.Timeline
foreach (var (entityId, entity) in entities)
{
if (!_actionDecisionResults.TryGetValue(entityId, out var actionDecisionResult)
|| !_battleActionDatas.TryGetValue(entityId, out var battleActionData))
{
entity.EntityPreviewVisuals.ShowPreviewState(spawnStaticSnapshotGhost: false);
continue;
}
entity.EntityPreviewVisuals.ShowPreviewState(spawnStaticSnapshotGhost: true);
resultsSnapshots[entityId] = actionDecisionResult.GetSnapshot();
actionDataSnapshots[entityId] = battleActionData.GetSnapshot();
@@ -141,6 +146,11 @@ namespace Code.OfficeGame.BattleMode.Timeline
finally
{
RestoreFromSnapshots(entities, resultsSnapshots, actionDataSnapshots, entitySnapshots);
foreach (var (_, entity) in entities)
{
entity.EntityPreviewVisuals.HidePreviewState();
}
}
}