This commit is contained in:
CortexCore
2024-03-18 21:47:41 +08:00
parent 8acd61ea57
commit 0da2773ea6
19 changed files with 403 additions and 121 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using BITKit.Modification;
using UnityEngine;
// ReSharper disable ConvertToAutoProperty
@@ -12,6 +13,12 @@ namespace BITFALL.Cosmetic
[SerializeField] private Texture texture;
public Texture Texture => texture;
}
[Serializable]
public struct CosmeticModelContent:ICosmeticContent
{
[SerializeField] private GameObject model;
public GameObject Model => model;
}
public class AssetableCosmetic : ScriptableObject,ICosmetic
{
[SerializeField] private ulong id;
@@ -19,12 +26,15 @@ namespace BITFALL.Cosmetic
[SerializeField] private Sprite icon;
[SerializeReference, SubclassSelector] private ICosmeticType type;
[SerializeReference, SubclassSelector] private ICosmeticContent[] contents;
[SerializeReference, SubclassSelector] private IModifyElement[] require;
[SerializeReference, SubclassSelector] private IModifyElement[] incompatible;
public Sprite Icon => icon;
public string AddressablePath=> addressablePath;
public ulong Id => id;
public ICosmeticType Type=> type;
public ICosmeticContent[] Contents=> contents;
public IModifyElement[] Require=> require;
public IModifyElement[] Incompatible=> incompatible;
}
}