[增加]1. 增加AOT列表的解析
This commit is contained in:
parent
e6656d8f1c
commit
a4756ce679
|
@ -11,11 +11,13 @@ namespace GameFrameX.GlobalConfig.Editor
|
|||
private SerializedProperty m_HostServerUrl = null;
|
||||
private SerializedProperty m_Content = null;
|
||||
private SerializedProperty m_AOTCodeList = null;
|
||||
private SerializedProperty m_AOTCodeLists = null;
|
||||
private SerializedProperty m_CheckAppVersionUrl = null;
|
||||
private SerializedProperty m_CheckResourceVersionUrl = null;
|
||||
private GUIContent m_HostServerUrlGUIContent = new GUIContent("主机服务地址");
|
||||
private GUIContent m_ContentGUIContent = new GUIContent("附加内容");
|
||||
private GUIContent m_ContentGUIAOTCodeList = new GUIContent("补充程序集列表");
|
||||
private GUIContent m_AOTCodeListsContentGUI = new GUIContent("补充元数据列表");
|
||||
private GUIContent m_CheckAppVersionUrlGUIContent = new GUIContent("检测App版本地址接口");
|
||||
private GUIContent m_CheckResourceVersionUrlGUIContent = new GUIContent("检测资源版本地址接口");
|
||||
|
||||
|
@ -32,6 +34,7 @@ namespace GameFrameX.GlobalConfig.Editor
|
|||
EditorGUILayout.PropertyField(m_CheckResourceVersionUrl, m_CheckResourceVersionUrlGUIContent);
|
||||
EditorGUILayout.PropertyField(m_AOTCodeList, m_ContentGUIAOTCodeList, GUILayout.Height(100));
|
||||
EditorGUILayout.PropertyField(m_Content, m_ContentGUIContent, GUILayout.Height(120));
|
||||
EditorGUILayout.PropertyField(m_AOTCodeLists, m_AOTCodeListsContentGUI);
|
||||
}
|
||||
EditorGUI.EndDisabledGroup();
|
||||
|
||||
|
@ -53,6 +56,7 @@ namespace GameFrameX.GlobalConfig.Editor
|
|||
m_HostServerUrl = serializedObject.FindProperty("m_HostServerUrl");
|
||||
m_Content = serializedObject.FindProperty("m_Content");
|
||||
m_AOTCodeList = serializedObject.FindProperty("m_AOTCodeList");
|
||||
m_AOTCodeLists = serializedObject.FindProperty("m_AOTCodeLists");
|
||||
m_CheckResourceVersionUrl = serializedObject.FindProperty("m_CheckResourceVersionUrl");
|
||||
|
||||
RefreshTypeNames();
|
||||
|
|
|
@ -13,6 +13,7 @@ namespace GameFrameX.GlobalConfig.Runtime
|
|||
_ = typeof(HttpJsonResult);
|
||||
_ = typeof(ResponseGameAppVersion);
|
||||
_ = typeof(ResponseGlobalInfo);
|
||||
_ = typeof(ResponseGameAssetPackageVersion);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,4 +1,6 @@
|
|||
using GameFrameX.Runtime;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using GameFrameX.Runtime;
|
||||
using UnityEngine;
|
||||
|
||||
namespace GameFrameX.GlobalConfig.Runtime
|
||||
|
@ -43,13 +45,37 @@ namespace GameFrameX.GlobalConfig.Runtime
|
|||
/// </summary>
|
||||
[SerializeField] private string m_AOTCodeList = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// AOT补充元数据列表
|
||||
/// </summary>
|
||||
[SerializeField] private List<string> m_AOTCodeLists = new List<string>();
|
||||
|
||||
/// <summary>
|
||||
/// 补充元数据列表
|
||||
/// </summary>
|
||||
public List<string> AOTCodeLists
|
||||
{
|
||||
get { return m_AOTCodeLists; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// AOT代码列表
|
||||
/// </summary>
|
||||
public string AOTCodeList
|
||||
{
|
||||
get => m_AOTCodeList;
|
||||
set => m_AOTCodeList = value;
|
||||
set
|
||||
{
|
||||
m_AOTCodeList = value;
|
||||
try
|
||||
{
|
||||
m_AOTCodeLists = Utility.Json.ToObject<List<string>>(value);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Fatal(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue