Lil improvements
This commit is contained in:
1 parent
31850e77bc
commit
d00ce7bb0e
59 files changed
+79385
-23141
No files matched your search
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user