Exemple #1
0
 public static bool HasNoActionTargetsAttribute(Type actionType)
 {
     return(CustomAttributeHelpers.HasAttribute <NoActionTargetsAttribute>(actionType));
 }
Exemple #2
0
 public static bool HasAttribute <T>(FieldInfo field) where T : Attribute
 {
     return(CustomAttributeHelpers.HasAttribute <T>(field.GetCustomAttributes(true)));
 }
Exemple #3
0
 private static void FindGameObjectParameters(Type actionType, FieldInfo field)
 {
     if ((field.get_FieldType() == typeof(SkillOwnerDefault) || field.get_FieldType() == typeof(SkillGameObject) || field.get_FieldType() == typeof(GameObject)) && !CustomAttributeHelpers.HasAttribute <CheckForComponentAttribute>(field))
     {
         ActionTargets.AddActionTarget(actionType, new ActionTarget(typeof(GameObject), field.get_Name(), false));
     }
 }
Exemple #4
0
 public static bool HasAttribute <T>(Type type) where T : Attribute
 {
     return(CustomAttributeHelpers.HasAttribute <T>(type.GetCustomAttributes(true)));
 }