Update
This commit is contained in:
parent
3becac4bb8
commit
6021aa664c
@ -133,9 +133,21 @@ namespace SkinHide.Utils
|
|||||||
|
|
||||||
private T Instance;
|
private T Instance;
|
||||||
|
|
||||||
public Type InType;
|
public Type InType
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return TType;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Type PropertyType;
|
public Type PropertyType
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return PropertyInfo.PropertyType;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public PropertyRef(PropertyInfo propertyinfo, object instance = null)
|
public PropertyRef(PropertyInfo propertyinfo, object instance = null)
|
||||||
{
|
{
|
||||||
@ -177,10 +189,6 @@ namespace SkinHide.Utils
|
|||||||
|
|
||||||
TType = PropertyInfo.DeclaringType;
|
TType = PropertyInfo.DeclaringType;
|
||||||
|
|
||||||
InType = TType;
|
|
||||||
|
|
||||||
PropertyType = PropertyInfo.PropertyType;
|
|
||||||
|
|
||||||
Instance = (T)instance;
|
Instance = (T)instance;
|
||||||
|
|
||||||
if (PropertyInfo.CanRead)
|
if (PropertyInfo.CanRead)
|
||||||
@ -272,9 +280,21 @@ namespace SkinHide.Utils
|
|||||||
|
|
||||||
private T Instance;
|
private T Instance;
|
||||||
|
|
||||||
public Type InType;
|
public Type InType
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return TType;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Type FieldType;
|
public Type FieldType
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return FieldInfo.FieldType;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public FieldRef(FieldInfo fieldinfo, object instance = null)
|
public FieldRef(FieldInfo fieldinfo, object instance = null)
|
||||||
{
|
{
|
||||||
@ -341,10 +361,6 @@ namespace SkinHide.Utils
|
|||||||
|
|
||||||
TType = FieldInfo.DeclaringType;
|
TType = FieldInfo.DeclaringType;
|
||||||
|
|
||||||
InType = TType;
|
|
||||||
|
|
||||||
FieldType = FieldInfo.FieldType;
|
|
||||||
|
|
||||||
Instance = (T)instance;
|
Instance = (T)instance;
|
||||||
|
|
||||||
HarmonyFieldRef = AccessTools.FieldRefAccess<T, F>(FieldInfo);
|
HarmonyFieldRef = AccessTools.FieldRefAccess<T, F>(FieldInfo);
|
||||||
@ -404,6 +420,4 @@ namespace SkinHide.Utils
|
|||||||
return GetEftMethod(GetEftType(func), flags, func2);
|
return GetEftMethod(GetEftType(func), flags, func2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user