This repository has been archived on 2024-06-19. You can view files and clone it, but cannot push or open issues or pull requests.
evermillion/Assets/Plugins/UnitySweeper/Editor/CollectionData.cs
2024-06-05 11:10:54 +08:00

46 lines
1.1 KiB
C#
Vendored

using System;
using System.Collections.Generic;
using System.Linq;
namespace UnitySweeper
{
[Serializable]
public class CollectionData
{
public string fileGuid;
public string fileName;
public List<string> referenceGuids = new List<string>();
public DateTime timeStamp;
}
[Serializable]
public class TypeDate
{
public string guid;
public string fileName;
public DateTime timeStamp;
public List<string> typeFullName = new List<string>();
public string assembly;
public void Add(Type addType)
{
assembly = addType.Assembly.FullName;
var typeName = addType.FullName;
if (typeFullName.Contains(typeName) == false)
{
typeFullName.Add(typeName);
}
}
public Type[] types
{
get { return typeFullName.Select(c => Type.GetType(c)).ToArray(); }
}
}
public interface IReferenceCollection
{
void CollectionFiles();
void Init(List<CollectionData> refs);
}
}