Use typed payloads for behavior construction
This commit is contained in:
parent
48178a969b
commit
18dc4a61ce
5 changed files with 37 additions and 8 deletions
|
|
@ -69,6 +69,14 @@ public class ItemManager
|
|||
return itemId == Guid.Empty ? null : _itemProjections.GetRuntimeItem(itemId);
|
||||
}
|
||||
|
||||
public IReadOnlyList<BehaviorData> GetRuntimeBehaviorProjections(ItemInstance item)
|
||||
{
|
||||
var itemId = item?.Data?.ItemId ?? Guid.Empty;
|
||||
return itemId == Guid.Empty
|
||||
? Array.Empty<BehaviorData>()
|
||||
: _itemProjections.GetBehaviorProjections(itemId);
|
||||
}
|
||||
|
||||
public Shape GetRuntimeShape(ItemInstance item)
|
||||
{
|
||||
var typedItem = GetRuntimeItem(item);
|
||||
|
|
|
|||
Loading…
Reference in a new issue