Files
Hasebe/Assets/Code/OfficeGame/BattleMode/Actions/ActionDatas/StuggerActionData.cs
T
2026-11-10 12:46:44 +03:00

30 lines
964 B
C#

namespace Code.OfficeGame.BattleMode.Actions
{
public class StuggerActionData : BattleActionData
{
public int CurrentFrame;
public int TransitionFrames = 60;
public override BattleActionData GetSnapshot()
{
var snapshot = new AttackBattleActionData()
{
TotalFrames = TotalFrames,
Finished = Finished,
CurrentFrame = CurrentFrame,
TransitionFrames = TransitionFrames,
};
return snapshot;
}
public override void RestoreSnapshot(BattleActionData snapshot)
{
if (snapshot is not AttackBattleActionData neededSnapshot) return;
TotalFrames = neededSnapshot.TotalFrames;
Finished = neededSnapshot.Finished;
CurrentFrame = neededSnapshot.CurrentFrame;
TransitionFrames = neededSnapshot.TransitionFrames;
}
}
}