Something more fixed

This commit is contained in:
ThomasCharester committed 2026-11-10 12:46:44 +03:00
1 parent 7d236d14cd
commit d810ea00b6
676 files changed
+176711 -316402

No files matched your search

@@ -9,6 +9,7 @@ namespace Code.OfficeGame.BattleMode.Actions
var snapshot = new AttackBattleActionData()
{
TotalFrames = TotalFrames,
Finished = Finished,
CurrentFrame = CurrentFrame,
TransitionFrames = TransitionFrames,
};
@@ -21,6 +22,7 @@ namespace Code.OfficeGame.BattleMode.Actions
if (snapshot is not AttackBattleActionData neededSnapshot) return;
TotalFrames = neededSnapshot.TotalFrames;
Finished = neededSnapshot.Finished;
CurrentFrame = neededSnapshot.CurrentFrame;
TransitionFrames = neededSnapshot.TransitionFrames;
}
@@ -27,6 +27,7 @@ namespace Code.OfficeGame.BattleMode.Actions
return new MovementBattleActionData
{
TotalFrames = TotalFrames,
Finished = Finished,
Position = Position,
Rotation = Rotation,
Path = Path,
@@ -40,10 +41,11 @@ namespace Code.OfficeGame.BattleMode.Actions
public override void RestoreSnapshot(BattleActionData snapshot)
{
TotalFrames = snapshot.TotalFrames;
if (snapshot is not MovementBattleActionData moveSnapshot) return;
TotalFrames = snapshot.TotalFrames;
Finished = snapshot.Finished;
CurrentFrame = moveSnapshot.CurrentFrame;
Position = moveSnapshot.Position;
Rotation = moveSnapshot.Rotation;
@@ -4,12 +4,17 @@ namespace Code.OfficeGame.BattleMode.Actions
{
public override BattleActionData GetSnapshot()
{
return new NoneBattleActionData();
return new NoneBattleActionData()
{
TotalFrames = TotalFrames,
Finished = Finished,
};
}
public override void RestoreSnapshot(BattleActionData snapshot)
{
TotalFrames = snapshot.TotalFrames;
Finished = snapshot.Finished;
}
}
}
@@ -9,6 +9,7 @@ namespace Code.OfficeGame.BattleMode.Actions
var snapshot = new AttackBattleActionData()
{
TotalFrames = TotalFrames,
Finished = Finished,
CurrentFrame = CurrentFrame,
TransitionFrames = TransitionFrames,
};
@@ -21,6 +22,7 @@ namespace Code.OfficeGame.BattleMode.Actions
if (snapshot is not AttackBattleActionData neededSnapshot) return;
TotalFrames = neededSnapshot.TotalFrames;
Finished = neededSnapshot.Finished;
CurrentFrame = neededSnapshot.CurrentFrame;
TransitionFrames = neededSnapshot.TransitionFrames;
}
@@ -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;