using System; using Sirenix.OdinInspector; using UnityEngine; namespace Stary.Evo { [Serializable] [CreateAssetMenu(fileName = "DomainConfig", menuName = "Evo/Create DomainConfig")] public class DomainConfig : SerializedScriptableObject { /// /// 域id /// [Sirenix.OdinInspector.ReadOnly] public string domain; /// /// 入口命名空间 /// [Sirenix.OdinInspector.ReadOnly] public string @namespace; /// /// 入口类 /// [Sirenix.OdinInspector.ReadOnly] public string className; public LoadResType loadResType; [Sirenix.OdinInspector.ReadOnly] [ShowIf("loadResType", LoadResType.Prefab)] /// /// 入口预制体 /// public string mainPrefab; [ShowIf("loadResType", LoadResType.Scene)] public string mainScene; // [ShowIfGroup("loadResType", LoadResType.Prefab)] // public PonitPrefabType ponitPrefabType; // [ShowIfGroup("loadResType", LoadResType.Prefab)] // [ShowIf("ponitPrefabType", PonitPrefabType.Plural)] // [OnCollectionChanged("OnPointConfDichChanged")] // public Dictionary PonitConfDic = new Dictionary(); // private void OnPointConfDichChanged(CollectionChangeInfo info, object value) // { // Debug.Log("Received callback BEFORE CHANGE with the following info: " + info + // ", and the following collection instance: " + value); // } public enum LoadResType { Prefab, Scene } // public enum PonitPrefabType // { // Single, // Plural // } } }