28 lines
879 B
C#
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;
|
|
}
|
|
}
|
|
} |