Persist behavior progress in entity snapshots
This commit is contained in:
parent
6bcf6444b9
commit
3c4fe6fd10
7 changed files with 137 additions and 5 deletions
|
|
@ -558,6 +558,9 @@ namespace GameCult.Aetheria.State.Unity
|
|||
|
||||
[Key(25)]
|
||||
public IReadOnlyList<AetheriaRuntimeActiveConsumableCommit> ActiveConsumables { get; set; } = Array.Empty<AetheriaRuntimeActiveConsumableCommit>();
|
||||
|
||||
[Key(26)]
|
||||
public IReadOnlyList<AetheriaRuntimeBehaviorProgressCommit> BehaviorProgress { get; set; } = Array.Empty<AetheriaRuntimeBehaviorProgressCommit>();
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
|
|
@ -591,4 +594,23 @@ namespace GameCult.Aetheria.State.Unity
|
|||
[Key(3)]
|
||||
public double Duration { get; set; }
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public sealed class AetheriaRuntimeBehaviorProgressCommit
|
||||
{
|
||||
[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 double Progress { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue