Files
plugin-library/Assets/00.StaryEvo/Runtime/PlayerSettings/DomainConfig.cs

66 lines
1.8 KiB
C#
Raw Normal View History

2025-04-11 09:56:06 +08:00
using System;
using Sirenix.OdinInspector;
2025-03-31 11:16:52 +08:00
using UnityEngine;
namespace Stary.Evo
{
2025-04-11 09:56:06 +08:00
[Serializable]
2025-03-31 11:16:52 +08:00
[CreateAssetMenu(fileName = "DomainConfig", menuName = "Evo/Create DomainConfig")]
2025-04-11 09:56:06 +08:00
public class DomainConfig : SerializedScriptableObject
2025-03-31 11:16:52 +08:00
{
/// <summary>
/// 域id
/// </summary>
2025-04-11 09:56:06 +08:00
[Sirenix.OdinInspector.ReadOnly] public string domain;
2025-03-31 11:16:52 +08:00
/// <summary>
/// 入口命名空间
/// </summary>
2025-04-11 09:56:06 +08:00
[Sirenix.OdinInspector.ReadOnly] public string @namespace;
2025-03-31 11:16:52 +08:00
/// <summary>
/// 入口类
/// </summary>
2025-04-11 09:56:06 +08:00
[Sirenix.OdinInspector.ReadOnly] public string className;
2025-03-31 11:16:52 +08:00
2025-04-11 09:56:06 +08:00
public LoadResType loadResType;
2025-03-31 11:16:52 +08:00
2025-04-11 09:56:06 +08:00
[Sirenix.OdinInspector.ReadOnly] [ShowIf("loadResType", LoadResType.Prefab)]
/// <summary>
/// 入口预制体
/// </summary>
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<string, string> PonitConfDic = new Dictionary<string, string>();
// 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
// }
}
2025-03-31 11:16:52 +08:00
}