46 lines
No EOL
1.1 KiB
C#
Vendored
46 lines
No EOL
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);
|
|
}
|
|
} |