Persist daemon consumable behavior state
This commit is contained in:
parent
cadddb4c87
commit
5363714cde
17 changed files with 445 additions and 30 deletions
|
|
@ -2802,10 +2802,20 @@ static AetheriaRuntimeEntitySnapshotCommit ToRuntimeEntity(
|
|||
ActiveConsumables = (entity.ActiveConsumables ?? Array.Empty<AetheriaActiveConsumableSnapshot>())
|
||||
.Select(consumable => new AetheriaRuntimeActiveConsumableCommit
|
||||
{
|
||||
EffectId = consumable.EffectId ?? "",
|
||||
ItemKey = consumable.ItemKey ?? "",
|
||||
Quality = consumable.Quality,
|
||||
RemainingDuration = consumable.RemainingDuration,
|
||||
Duration = consumable.Duration
|
||||
Duration = consumable.Duration,
|
||||
BehaviorStates = (consumable.BehaviorStates ?? Array.Empty<AetheriaConsumableBehaviorStateSnapshot>())
|
||||
.Select(state => new AetheriaRuntimeConsumableBehaviorStateCommit
|
||||
{
|
||||
BehaviorIndex = state.BehaviorIndex,
|
||||
BehaviorKind = state.BehaviorKind ?? "",
|
||||
ScalarState = state.ScalarState,
|
||||
BehaviorId = state.BehaviorId ?? ""
|
||||
})
|
||||
.ToArray()
|
||||
})
|
||||
.ToArray(),
|
||||
BehaviorProgress = (entity.BehaviorProgress ?? Array.Empty<AetheriaBehaviorProgressSnapshot>())
|
||||
|
|
|
|||
Loading…
Reference in a new issue