Something more fixed
This commit is contained in:
1 parent
7d236d14cd
commit
d810ea00b6
676 files changed
+176711
-316402
No files matched your search
@@ -9,6 +9,7 @@ namespace Code.OfficeGame.BattleMode.Actions
|
||||
return new WaitBattleActionData
|
||||
{
|
||||
TotalFrames = TotalFrames,
|
||||
Finished = Finished,
|
||||
WaitFrames = WaitFrames,
|
||||
StartedWaiting = StartedWaiting
|
||||
};
|
||||
@@ -16,9 +17,10 @@ namespace Code.OfficeGame.BattleMode.Actions
|
||||
|
||||
public override void RestoreSnapshot(BattleActionData snapshot)
|
||||
{
|
||||
TotalFrames = snapshot.TotalFrames;
|
||||
|
||||
if (snapshot is not WaitBattleActionData waitSnapshot) return;
|
||||
|
||||
TotalFrames = snapshot.TotalFrames;
|
||||
Finished = snapshot.Finished;
|
||||
|
||||
WaitFrames = waitSnapshot.WaitFrames;
|
||||
StartedWaiting = waitSnapshot.StartedWaiting;
|
||||
|
||||
Reference in new issue
Block a user