OnOtherBuffApply/Remove监听
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "StorySystemEditor",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:d1e9096bb63948544a42da8fa8cc647d"
|
||||
],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 42222c69a0f89ff43a1c0018c677ad97
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -3,9 +3,7 @@ using UnityEngine;
|
||||
namespace SLSFramework.StorySystem
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor.Experimental.GraphView;
|
||||
|
||||
// 节点连接的数据结构
|
||||
[Serializable]
|
||||
|
||||
@@ -8,7 +8,6 @@ using SLSFramework.General;
|
||||
using UMod;
|
||||
using UMod.Scripting;
|
||||
using UnityEngine;
|
||||
using UnityEngine.ResourceManagement.Exceptions;
|
||||
using Object = UnityEngine.Object;
|
||||
|
||||
namespace SLSFramework.UModAssistance
|
||||
@@ -34,7 +33,7 @@ namespace SLSFramework.UModAssistance
|
||||
}
|
||||
if (!host.IsSuccessful)
|
||||
{
|
||||
throw new OperationException($"Failed to load mod '{modName}'");
|
||||
throw new Exception($"Failed to load mod '{modName}' asynchronously");
|
||||
}
|
||||
LoadedMods.Add(modName, host.Result);
|
||||
Debug.Log($"Mod '{modName}' async loaded successfully.");
|
||||
@@ -156,9 +155,14 @@ namespace SLSFramework.UModAssistance
|
||||
return type.Namespace!.Replace("Continentis.Mods.", "") + "." + type.Name;
|
||||
}
|
||||
|
||||
public static string GetTypeID(string modName, string classification, string className)
|
||||
public static string GetTypeID(string modName, string classification, string category, string className)
|
||||
{
|
||||
return $"{modName}.{classification}.{className}";
|
||||
if (string.IsNullOrEmpty(category))
|
||||
{
|
||||
return $"{modName}.{classification}.{className}";
|
||||
}
|
||||
|
||||
return $"{modName}.{classification}.{category}.{className}";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user