Move runtime item references to typed keys
This commit is contained in:
parent
399efc3851
commit
8337d5f5c7
9 changed files with 153 additions and 60 deletions
|
|
@ -12,10 +12,11 @@ using static Unity.Mathematics.math;
|
|||
|
||||
public abstract class ItemInstance
|
||||
{
|
||||
public RuntimeItemDefinitionReference Reference;
|
||||
public AetheriaRuntimeItemReference Reference;
|
||||
public ItemRotation Rotation;
|
||||
|
||||
public Guid ItemId => Reference?.ItemId ?? Guid.Empty;
|
||||
public string ItemKey => Reference?.ItemKey ?? "";
|
||||
public Guid ItemId => Reference?.LegacyItemId ?? Guid.Empty;
|
||||
}
|
||||
|
||||
public abstract class CraftedItemInstance : ItemInstance
|
||||
|
|
|
|||
Loading…
Reference in a new issue