Persist thruster state in typed snapshots
This commit is contained in:
parent
a67a228c6b
commit
21d5cbdf79
10 changed files with 86 additions and 8 deletions
|
|
@ -507,7 +507,10 @@ public static class AetheriaRuntimeCommitLogApplier
|
|||
ResourceScannerScanDuration = state.ResourceScannerScanDuration,
|
||||
MiningToolAsteroidBeltId = state.MiningToolAsteroidBeltId ?? "",
|
||||
MiningToolAsteroidIndex = state.MiningToolAsteroidIndex,
|
||||
MiningToolRange = state.MiningToolRange
|
||||
MiningToolRange = state.MiningToolRange,
|
||||
ThrusterAxis = state.ThrusterAxis,
|
||||
ThrusterThrust = state.ThrusterThrust,
|
||||
ThrusterTorque = state.ThrusterTorque
|
||||
})
|
||||
.ToArray();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -766,6 +766,15 @@ public sealed class AetheriaBehaviorStateSnapshot
|
|||
|
||||
[Key(39)]
|
||||
public double MiningToolRange { get; set; }
|
||||
|
||||
[Key(40)]
|
||||
public double ThrusterAxis { get; set; }
|
||||
|
||||
[Key(41)]
|
||||
public double ThrusterThrust { get; set; }
|
||||
|
||||
[Key(42)]
|
||||
public double ThrusterTorque { get; set; }
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
|
|
|
|||
Loading…
Reference in a new issue