Exemplo n.º 1
0
 public IEnumerable <EditProperty> GetAllPropertys()
 {
     return(target_type.GetFilteredInstanceFields(
                Filterer_Utility.Any(
                    Filterer_FieldInfo.HasCustomAttributeOfType <SerializeField>(),
                    Filterer_FieldInfo.HasCustomAttributeOfType <SerializeFieldEX>(),
                    Filterer_FieldInfo.IsPublicField(),
                    Filterer_FieldInfo.IsBackingFieldForPublicSetAndGet()
                    )
                ).Convert(f => f.CreateVariable())
            .Convert(v => EditProperty.New(this, v)));
 }
Exemplo n.º 2
0
        protected override Filterer <FieldInfo> GetFieldInfoFilterer(Type type)
        {
            if (type.CanBeTreatedAs <UnityEngine.Object>())
            {
                return(Filterer_FieldInfo.HasCustomAttributeOfType <SerializeFieldEX>());
            }

            return(Filterer_Utility.Any(
                       Filterer_FieldInfo.HasCustomAttributeOfType <SerializeField>(),
                       Filterer_FieldInfo.HasCustomAttributeOfType <SerializeFieldEX>(),
                       Filterer_FieldInfo.IsGetPublic()
                       ));
        }
Exemplo n.º 3
0
        protected override Filterer <FieldInfo> GetFieldInfoFilterer(Type type)
        {
            if (type.HasCustomAttributeOfType <SaveStateExplicitTypeAttribute>(true))
            {
                return(Filterer_FieldInfo.HasCustomAttributeOfType <SaveStateFieldAttribute>());
            }

            return(Filterer_Utility.Any(
                       Filterer_FieldInfo.HasCustomAttributeOfType <SerializeField>(),
                       Filterer_FieldInfo.HasCustomAttributeOfType <SerializeFieldEX>(),
                       Filterer_FieldInfo.HasCustomAttributeOfType <SaveStateFieldAttribute>(),
                       Filterer_FieldInfo.IsGetPublic()
                       ));
        }