2024-09-29 23:31:12 +08:00
|
|
|
|
#if UNITY_EDITOR
|
|
|
|
|
using DCFApixels.DragonECS.Unity.RefRepairer.Internal;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace DCFApixels.DragonECS.Unity.RefRepairer.Editors
|
|
|
|
|
{
|
2024-09-30 19:40:50 +08:00
|
|
|
|
internal class ContainerMissingRefs
|
2024-09-29 23:31:12 +08:00
|
|
|
|
{
|
|
|
|
|
public readonly TypeData TypeData;
|
|
|
|
|
public readonly string ReplacedLine;
|
2024-09-30 19:40:50 +08:00
|
|
|
|
public readonly List<MissingTypeData> ManagedReferencesMissingTypeDatas = new List<MissingTypeData>(4);
|
|
|
|
|
public readonly bool IsHasMetaIDRegistry;
|
|
|
|
|
public ContainerMissingRefs(TypeData typeData)
|
2024-09-29 23:31:12 +08:00
|
|
|
|
{
|
|
|
|
|
TypeData = typeData;
|
2024-09-30 19:40:50 +08:00
|
|
|
|
ReplacedLine = RepaireFileUtility.GenerateReplacedLine(typeData);
|
|
|
|
|
IsHasMetaIDRegistry = MetaIDRegistry.instance.TryGetMetaID(TypeData, out _);
|
2024-09-29 23:31:12 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endif
|