Persist AetherDrive state in typed snapshots

This commit is contained in:
Meta Vens 2026-06-14 15:55:03 +01:00
commit 0ffbaf9ce8
10 changed files with 227 additions and 7 deletions

View file

@ -884,6 +884,24 @@ public class ActionGameManager : MonoBehaviour
CapacitorEfficiency = capacitor.Efficiency
};
}
else if (behavior is AetherDrive drive)
{
state = new AetheriaRuntimeBehaviorStateCommit
{
AetherDriveAxisX = drive.Axis.x,
AetherDriveAxisY = drive.Axis.y,
AetherDriveAxisZ = drive.Axis.z,
AetherDriveThrustX = drive.Thrust.x,
AetherDriveThrustY = drive.Thrust.y,
AetherDriveThrustZ = drive.Thrust.z,
AetherDriveRpmX = drive.Rpm.x,
AetherDriveRpmY = drive.Rpm.y,
AetherDriveRpmZ = drive.Rpm.z,
AetherDriveMaximumRpm = drive.MaximumRpm,
AetherDriveThrustDirectionX = drive.ThrustDirection.x,
AetherDriveThrustDirectionY = drive.ThrustDirection.y
};
}
if (state == null)
continue;