Persist AetherDrive state in typed snapshots
This commit is contained in:
parent
6a6a19d08f
commit
0ffbaf9ce8
10 changed files with 227 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue