refactor(D.5.2): hoist UiEffectsPropertyId to fields + use it in tests (review polish)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
77f64d7925
commit
5a2af61508
2 changed files with 7 additions and 5 deletions
|
|
@ -61,6 +61,11 @@ public sealed class ItemRepository
|
|||
/// <summary>Fires when an item's properties are updated (typically after Appraise).</summary>
|
||||
public event Action<ItemInstance>? ItemPropertiesUpdated;
|
||||
|
||||
/// <summary>PropertyInt.UiEffects (ACE enum value 18) — the icon effect bitfield;
|
||||
/// the typed mirror <see cref="UpdateIntProperty"/> maintains on
|
||||
/// <see cref="ItemInstance.Effects"/>.</summary>
|
||||
public const uint UiEffectsPropertyId = 18u;
|
||||
|
||||
public int ItemCount => _items.Count;
|
||||
public int ContainerCount => _containers.Count;
|
||||
|
||||
|
|
@ -187,9 +192,6 @@ public sealed class ItemRepository
|
|||
return true;
|
||||
}
|
||||
|
||||
/// <summary>PropertyInt.UiEffects (ACE enum value 18) — the icon effect bitfield.</summary>
|
||||
public const uint UiEffectsPropertyId = 18u;
|
||||
|
||||
/// <summary>
|
||||
/// Apply a single PropertyInt update (from PublicUpdatePropertyInt 0x02CE) to an
|
||||
/// item: store it in the bundle and, for known typed ints, mirror to the typed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue