Exemplo n.º 1
0
 public static bool HasGhostFieldAttribute(Mono.Cecil.TypeReference parentType, Mono.Cecil.FieldDefinition componentField)
 {
     if (!GhostAuthoringComponentEditor.GhostDefaultOverrides.TryGetValue(parentType.FullName.Replace('/', '+'), out var newComponent))
     {
         return(componentField.HasAttribute <GhostFieldAttribute>());
     }
     else
     {
         return(newComponent.fields.Any(f => f.name == componentField.Name));
     }
 }
Exemplo n.º 2
0
 public static bool IsGhostField(this Mono.Cecil.FieldDefinition fieldDefinition)
 {
     return(fieldDefinition.HasAttribute <GhostFieldAttribute>());
 }