Lil improvements

This commit is contained in:
ThomasCharester committed 2026-10-31 02:59:29 +03:00
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 AttackBattleActionData : 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;
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 64cdf1d355ea44ea8435dd8c4e2584d4
timeCreated: 1793402627
@@ -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;
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 596b5dfe5898472e9bcd44bf1050209a
timeCreated: 1793404253