29 lines
832 B
C#
29 lines
832 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
// ReSharper disable ConvertToAutoProperty
|
|
|
|
namespace BITFALL.Cosmetic
|
|
{
|
|
[Serializable]
|
|
public struct CosmeticTextureContent:ICosmeticContent
|
|
{
|
|
[SerializeField] private Texture texture;
|
|
public Texture Texture => texture;
|
|
}
|
|
public class AssetableCosmetic : ScriptableObject,ICosmetic
|
|
{
|
|
[SerializeField] private ulong id;
|
|
[SerializeField] private string addressablePath;
|
|
[SerializeField] private Sprite icon;
|
|
[SerializeReference, SubclassSelector] private ICosmeticType type;
|
|
[SerializeReference, SubclassSelector] private ICosmeticContent[] contents;
|
|
|
|
public string AddressablePath=> addressablePath;
|
|
public ulong Id => id;
|
|
public ICosmeticType Type=> type;
|
|
public ICosmeticContent[] Contents=> contents;
|
|
}
|
|
}
|