Пример #1
0
        public UnrealPropertyInfo(UnrealMetadataProvider metadataProvider, UnrealTypeInfo declaringType, System.Reflection.PropertyInfo native)
            : base(metadataProvider, declaringType, native)
        {
            ForAttribute <UnrealPropertyAttribute>(attr =>
            {
                ForBlueprint = attr.ForBlueprint;
            });

            if (Permission.HasFlag(Permission.Write))
            {
                BlueprintFlag = UnrealPropertyFlags.BlueprintReadWrite;
                EditorFlag    = UnrealPropertyFlags.EditAnywhere;
            }

            ForAttribute <EditorReadOnlyAttribute>(attr =>
            {
                EditorFlag = UnrealPropertyFlags.VisibleAnywhere;
            });

            ForAttribute <EditorReadWriteAttribute>(attr =>
            {
                EditorFlag = UnrealPropertyFlags.EditAnywhere;
            });

            ForAttribute <RuntimeReadOnlyAttribute>(attr =>
            {
                BlueprintFlag = UnrealPropertyFlags.BlueprintReadOnly;
            });

            ForAttribute <RuntimeReadWriteAttribute>(attr =>
            {
                BlueprintFlag = UnrealPropertyFlags.BlueprintReadWrite;
            });
        }
Пример #2
0
        public UnrealTypeInfo(UnrealMetadataProvider metadataProvider, Type native)
            : base(metadataProvider, native)
        {
            ForAttribute <UnrealTypeAttributeBase>(attr =>
            {
                ForBlueprint = attr.ForBlueprint;

                //BaseTypes.Add(new UnrealTypeInfo(null, null, attr.BaseClassName));
                AsBaseClass = attr.AsBaseClass;
            });
        }
Пример #3
0
 public UnrealEventInfo(UnrealMetadataProvider metadataProvider, UnrealTypeInfo declaringType, System.Reflection.EventInfo native)
     : base(metadataProvider, declaringType, native)
 {
 }
Пример #4
0
 public UnrealParameterInfo(UnrealMetadataProvider metadataProvider, IMemberInfo declaringMember, UnrealTypeInfo declaringType, System.Reflection.ParameterInfo native)
     : base(metadataProvider, declaringMember, declaringType, native)
 {
 }
Пример #5
0
 public UnrealFunctionInfo(UnrealMetadataProvider metadataProvider, UnrealTypeInfo declaringType, MethodInfo native)
     : base(metadataProvider, declaringType, native)
 {
 }