Files
Hasebe/Assets/Code/OfficeGame/BattleMode/Actions/ActionDatas/StuggerActionData.cs
T
2026-10-31 02:59:29 +03:00

25 lines
719 B
C#

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