Files
Pal3.Unity/Assets/Scripts/Pal3.Game/Command/Extensions/Pal3ARestoreCombatScriptStateCommand.cs
Jiaqi (0x7c13) Liu 7e5df726cc Implement PAL3A command handlers and isolate script execution
Correct PAL3A parameter signatures and add handlers for fortune selection,
skybox sequences, actor facing and attacks, team and progression state,
camera constraints, and battle preparation flags.

Give script instances separate locals, advance grouped waits concurrently,
and pause PAL3A parents only for their directly decoded child calls. Cancel
stale interactions and save replay on reset, preserve finite action semantics,
and restore camera orientation after releasing horizontal constraints.

Persist supported state in v2 saves and add protocol, runtime, and progression
regressions. Full combat gameplay remains outside this change.

Validation: PAL3 274/274 and PAL3A 291/291 EditMode tests; 18 PAL3 and 22 PAL3A
runtime checks. All 77,889 PAL3A instruction boundaries match EXE signatures.
2026-11-13 00:49:36 +08:00

28 lines
776 B
C#

// ------------------------------------------------------------------------
// Copyright (c) 2026, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ------------------------------------------------------------------------
#if PAL3A
namespace Pal3.Game.Command.Extensions
{
using Core.Command;
[AvailableInConsole]
public sealed class Pal3ARestoreCombatScriptStateCommand : ICommand
{
public Pal3ARestoreCombatScriptStateCommand(int flags, int lostHp, int lostMp)
{
Flags = flags;
LostHp = lostHp;
LostMp = lostMp;
}
public int Flags { get; }
public int LostHp { get; }
public int LostMp { get; }
}
}
#endif