Persist weapon runtime state in checkpoints
This commit is contained in:
parent
3c4fe6fd10
commit
f98f650ab5
10 changed files with 287 additions and 8 deletions
|
|
@ -485,6 +485,9 @@ public sealed class AetheriaEntitySnapshot
|
|||
|
||||
[Key(21)]
|
||||
public AetheriaBehaviorProgressSnapshot[] BehaviorProgress { get; set; } = [];
|
||||
|
||||
[Key(22)]
|
||||
public AetheriaWeaponStateSnapshot[] WeaponStates { get; set; } = [];
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
|
|
@ -556,6 +559,61 @@ public sealed class AetheriaBehaviorProgressSnapshot
|
|||
public double Progress { get; set; }
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public sealed class AetheriaWeaponStateSnapshot
|
||||
{
|
||||
[Key(0)]
|
||||
public string OwnerKind { get; set; } = "";
|
||||
|
||||
[Key(1)]
|
||||
public int OwnerIndex { get; set; } = -1;
|
||||
|
||||
[Key(2)]
|
||||
public int BehaviorIndex { get; set; } = -1;
|
||||
|
||||
[Key(3)]
|
||||
public string BehaviorKind { get; set; } = "";
|
||||
|
||||
[Key(4)]
|
||||
public bool Firing { get; set; }
|
||||
|
||||
[Key(5)]
|
||||
public int Ammo { get; set; }
|
||||
|
||||
[Key(6)]
|
||||
public int BurstRemaining { get; set; }
|
||||
|
||||
[Key(7)]
|
||||
public double BurstTimer { get; set; }
|
||||
|
||||
[Key(8)]
|
||||
public double BurstInterval { get; set; }
|
||||
|
||||
[Key(9)]
|
||||
public double CooldownProgress { get; set; }
|
||||
|
||||
[Key(10)]
|
||||
public bool CoolingDown { get; set; }
|
||||
|
||||
[Key(11)]
|
||||
public bool Charging { get; set; }
|
||||
|
||||
[Key(12)]
|
||||
public bool Charged { get; set; }
|
||||
|
||||
[Key(13)]
|
||||
public double Charge { get; set; }
|
||||
|
||||
[Key(14)]
|
||||
public bool Reloading { get; set; }
|
||||
|
||||
[Key(15)]
|
||||
public double ReloadProgress { get; set; }
|
||||
|
||||
[Key(16)]
|
||||
public double AmmoIntervalProgress { get; set; }
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public sealed class AetheriaActionBarBinding
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue