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

28 lines
879 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,
CurrentFrame = CurrentFrame,
TransitionFrames = TransitionFrames,
};
return snapshot;
}
public override void RestoreSnapshot(BattleActionData snapshot)
{
if (snapshot is not AttackBattleActionData neededSnapshot) return;
TotalFrames = neededSnapshot.TotalFrames;
CurrentFrame = neededSnapshot.CurrentFrame;
TransitionFrames = neededSnapshot.TransitionFrames;
}
}
}