Persist thruster state in typed snapshots

This commit is contained in:
Meta Vens 2026-06-14 16:13:32 +01:00
commit 21d5cbdf79
10 changed files with 86 additions and 8 deletions

View file

@ -927,6 +927,15 @@ public class ActionGameManager : MonoBehaviour
MiningToolRange = miningTool.Range
};
}
else if (behavior is Thruster thruster)
{
state = new AetheriaRuntimeBehaviorStateCommit
{
ThrusterAxis = thruster.Axis,
ThrusterThrust = thruster.Thrust,
ThrusterTorque = thruster.Torque
};
}
if (state == null)
continue;