1
This commit is contained in:
30
Src/UnityPluginsSupport/Steamwork/SteamInventoryItemDef.cs
Normal file
30
Src/UnityPluginsSupport/Steamwork/SteamInventoryItemDef.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Object = UnityEngine.Object;
|
||||
|
||||
namespace BITKit.Steamwork
|
||||
{
|
||||
public class SteamInventoryItemDef : ISteamInventoryItemDef
|
||||
{
|
||||
public string AddressablePath { get; internal set; }
|
||||
public ulong Id { get; internal set;}
|
||||
public int DefId { get; internal set;}
|
||||
public string Type { get; internal set;}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public sealed class UnityInventoryItemDef:ISteamInventoryItemDef
|
||||
{
|
||||
[SerializeField] private Object obj;
|
||||
private ISteamInventoryItemDef _steamInventoryItemDefImplementation=>obj as ISteamInventoryItemDef;
|
||||
public string AddressablePath => _steamInventoryItemDefImplementation.AddressablePath;
|
||||
|
||||
public ulong Id => _steamInventoryItemDefImplementation.Id;
|
||||
|
||||
public int DefId => _steamInventoryItemDefImplementation.DefId;
|
||||
|
||||
public string Type => _steamInventoryItemDefImplementation.Type;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user