25 lines
703 B
C#
25 lines
703 B
C#
namespace Code.OfficeGame.BattleMode.Actions
|
|
{
|
|
public class WaitBattleActionData : BattleActionData
|
|
{
|
|
public bool StartedWaiting = false;
|
|
public int WaitFrames;
|
|
public override BattleActionData GetSnapshot()
|
|
{
|
|
return new WaitBattleActionData
|
|
{
|
|
TotalFrames = TotalFrames,
|
|
WaitFrames = WaitFrames
|
|
};
|
|
}
|
|
|
|
public override void RestoreSnapshot(BattleActionData snapshot)
|
|
{
|
|
TotalFrames = snapshot.TotalFrames;
|
|
|
|
if (snapshot is not WaitBattleActionData waitSnapshot) return;
|
|
|
|
WaitFrames = waitSnapshot.WaitFrames;
|
|
}
|
|
}
|
|
} |