Minor re-factoring

This commit is contained in:
Katy Coe
2020-01-26 22:18:29 +01:00
parent 90f563f8d2
commit 274f61d605
12 changed files with 32 additions and 24 deletions

View File

@@ -277,28 +277,4 @@ namespace Il2CppInspector
return processors; return processors;
} }
} }
public enum MetadataUsageType
{
TypeInfo = 1,
Type = 2,
MethodDef = 3,
FieldInfo = 4,
StringLiteral = 5,
MethodRef = 6,
}
public class MetadataUsage
{
public MetadataUsageType Type { get; }
public int SourceIndex { get; }
public int DestinationIndex { get; }
public MetadataUsage(MetadataUsageType type, int sourceIndex, int destinationIndex)
{
Type = type;
SourceIndex = sourceIndex;
DestinationIndex = destinationIndex;
}
}
} }

View File

@@ -0,0 +1,32 @@
/*
Copyright (c) 2019-2020 Carter Bush - https://github.com/carterbush
Copyright 2020 Katy Coe - http://www.hearthcode.org - http://www.djkaty.com
All rights reserved.
*/
namespace Il2CppInspector
{
public enum MetadataUsageType
{
TypeInfo = 1,
Type = 2,
MethodDef = 3,
FieldInfo = 4,
StringLiteral = 5,
MethodRef = 6,
}
public class MetadataUsage
{
public MetadataUsageType Type { get; }
public int SourceIndex { get; }
public int DestinationIndex { get; }
public MetadataUsage(MetadataUsageType type, int sourceIndex, int destinationIndex) {
Type = type;
SourceIndex = sourceIndex;
DestinationIndex = destinationIndex;
}
}
}