Great timeline system (Age of AI WON)

This commit is contained in:
ThomasCharester committed 2026-11-20 01:36:01 +03:00
1 parent 2ce0391c16
commit e312131725
182 files changed
+380070 -470221

No files matched your search

@@ -1,3 +1,4 @@
using System.Collections.Generic;
using UnityEngine;
namespace Code.OfficeGame.BattleMode.Actions
@@ -6,18 +7,20 @@ namespace Code.OfficeGame.BattleMode.Actions
{
public int CurrentFrame;
public int TransitionFrames;
public Quaternion StartRotation;
public HashSet<EntityId> HitEntities = new();
public override BattleActionData GetSnapshot()
{
var snapshot = new AttackBattleActionData()
return new AttackBattleActionData
{
TotalFrames = TotalFrames,
Finished = Finished,
CurrentFrame = CurrentFrame,
TransitionFrames = TransitionFrames,
StartRotation = StartRotation,
HitEntities = new HashSet<EntityId>(HitEntities)
};
return snapshot;
}
public override void RestoreSnapshot(BattleActionData snapshot)
@@ -28,6 +31,8 @@ namespace Code.OfficeGame.BattleMode.Actions
Finished = neededSnapshot.Finished;
CurrentFrame = neededSnapshot.CurrentFrame;
TransitionFrames = neededSnapshot.TransitionFrames;
StartRotation = neededSnapshot.StartRotation;
HitEntities = new HashSet<EntityId>(neededSnapshot.HitEntities);
}
}
}