public static bool HasNoActionTargetsAttribute(Type actionType) { return(CustomAttributeHelpers.HasAttribute <NoActionTargetsAttribute>(actionType)); }
public static bool HasAttribute <T>(FieldInfo field) where T : Attribute { return(CustomAttributeHelpers.HasAttribute <T>(field.GetCustomAttributes(true))); }
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)); } }
public static bool HasAttribute <T>(Type type) where T : Attribute { return(CustomAttributeHelpers.HasAttribute <T>(type.GetCustomAttributes(true))); }