mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
syntax
This commit is contained in:
parent
f64b808aed
commit
3c5a9de323
@ -76,18 +76,14 @@ public static bool ImplementsInterface<TInterface>(this TypeDefinition td)
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool IsMultidimensionalArray(this TypeReference tr)
|
||||
{
|
||||
return tr is ArrayType arrayType && arrayType.Rank > 1;
|
||||
}
|
||||
public static bool IsMultidimensionalArray(this TypeReference tr) =>
|
||||
tr is ArrayType arrayType && arrayType.Rank > 1;
|
||||
|
||||
// Does type use netId as backing field
|
||||
public static bool IsNetworkIdentityField(this TypeReference tr)
|
||||
{
|
||||
return tr.Is<UnityEngine.GameObject>()
|
||||
|| tr.Is<NetworkIdentity>()
|
||||
|| tr.IsDerivedFrom<NetworkBehaviour>();
|
||||
}
|
||||
public static bool IsNetworkIdentityField(this TypeReference tr) =>
|
||||
tr.Is<UnityEngine.GameObject>() ||
|
||||
tr.Is<NetworkIdentity>() ||
|
||||
tr.IsDerivedFrom<NetworkBehaviour>();
|
||||
|
||||
public static bool CanBeResolved(this TypeReference parent)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user