using UnityEngine;
namespace XGame.Framework
{
[CreateAssetMenu(fileName = "XGameConfig", menuName = "XGame/XGame Config")]
public sealed class XGameConfig : ScriptableObject
{
///
/// 项目名
///
public string productName = "Demo";
///
/// 项目的启动Assembly GUID
///
public string launchAssemblyGUID;
///
/// 项目的启动Assembly 名字
///
public string launchAssemblyName;
///
/// 项目的启动场景GUID
///
public string launchSceneGUID;
///
/// 项目的启动场景名字
///
public string launchSceneName;
///
/// 项目的启动脚本GUID
/// XGame.Framework.IGameLogic的实现类
///
public string gameLogicGUID;
///
/// 项目的启动脚本名字
/// XGame.Framework.IGameLogic的实现类
///
public string gameLogicTypeName;
#region 静态代码 Runtime用
public static XGameConfig Load()
{
return Asset.AssetManager.LoadSync(Define.AssetDefine.XGAME_CONFIG_NAME);
}
public static void Unload(XGameConfig config)
{
if (config != null)
{
Asset.AssetManager.Recycle(config);
}
}
#endregion
}
}