Пример #1
0
 static void LoadNativeType()
 {
     //if (NativeReflection.CachedTypeInfo.Enabled)
     //{
     //    NativeReflection.CachedTypeInfo typeInfo = NativeReflection.CachedTypeInfo.BuildStruct("/Script/Engine.DebugFloatHistory");
     //    StructSize = typeInfo.Size;
     //    MaxSamples_IsValid = typeInfo.GetPropertyOffsetAndValidate("MaxSamples", out MaxSamples_Offset, Classes.UFloatProperty);
     //    MinValue_IsValid = typeInfo.GetPropertyOffsetAndValidate("MinValue", out MinValue_Offset, Classes.UFloatProperty);
     //    MaxValue_IsValid = typeInfo.GetPropertyOffsetAndValidate("MaxValue", out MaxValue_Offset, Classes.UFloatProperty);
     //    AutoAdjustMinMax_IsValid = typeInfo.GetPropertyRefOffsetAndValidate("bAutoAdjustMinMax", ref AutoAdjustMinMax_PropertyAddress, out AutoAdjustMinMax_Offset, Classes.UBoolProperty);
     //    FDebugFloatHistory_IsValid = typeInfo.Exists && MaxSamples_IsValid && MaxValue_IsValid && AutoAdjustMinMax_IsValid;
     //    typeInfo.LogIsValid(FDebugFloatHistory_IsValid);
     //}
     //else
     {
         IntPtr classAddress = NativeReflection.GetStruct("/Script/Engine.DebugFloatHistory");
         StructSize         = NativeReflection.GetStructSize(classAddress);
         MaxSamples_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "MaxSamples");
         MaxSamples_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "MaxSamples", Classes.UFloatProperty);
         MinValue_Offset    = NativeReflectionCached.GetPropertyOffset(classAddress, "MinValue");
         MinValue_IsValid   = NativeReflectionCached.ValidatePropertyClass(classAddress, "MinValue", Classes.UFloatProperty);
         MaxValue_Offset    = NativeReflectionCached.GetPropertyOffset(classAddress, "MaxValue");
         MaxValue_IsValid   = NativeReflectionCached.ValidatePropertyClass(classAddress, "MaxValue", Classes.UFloatProperty);
         NativeReflectionCached.GetPropertyRef(ref AutoAdjustMinMax_PropertyAddress, classAddress, "bAutoAdjustMinMax");
         AutoAdjustMinMax_Offset    = NativeReflectionCached.GetPropertyOffset(classAddress, "bAutoAdjustMinMax");
         AutoAdjustMinMax_IsValid   = NativeReflectionCached.ValidatePropertyClass(classAddress, "bAutoAdjustMinMax", Classes.UBoolProperty);
         FDebugFloatHistory_IsValid = classAddress != IntPtr.Zero && MaxSamples_IsValid && MinValue_IsValid && MaxValue_IsValid && AutoAdjustMinMax_IsValid;
         NativeReflection.LogStructIsValid("/Script/Engine.DebugFloatHistory", FDebugFloatHistory_IsValid);
     }
 }
Пример #2
0
 static void LoadNativeType()
 {
     //if (NativeReflection.CachedTypeInfo.Enabled)
     //{
     //    NativeReflection.CachedTypeInfo typeInfo = NativeReflection.CachedTypeInfo.BuildStruct("/Script/Engine.EditorElement");
     //    StructSize = typeInfo.Size;
     //    Indices_IsValid = typeInfo.GetPropertyRefOffsetAndValidate("Indices", ref Indices_PropertyAddress, out Indices_Offset, Classes.UIntProperty);
     //    Weights_IsValid = typeInfo.GetPropertyRefOffsetAndValidate("Weights", ref Weights_PropertyAddress, out Weights_Offset, Classes.UFloatProperty);
     //    FEditorElement_IsValid = typeInfo.Exists && Indices_IsValid && Weights_IsValid;
     //    typeInfo.LogIsValid(FEditorElement_IsValid);
     //}
     //else
     {
         IntPtr classAddress = NativeReflection.GetStruct("/Script/Engine.EditorElement");
         StructSize = NativeReflection.GetStructSize(classAddress);
         NativeReflectionCached.GetPropertyRef(ref Indices_PropertyAddress, classAddress, "Indices");
         Indices_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "Indices");
         Indices_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "Indices", Classes.UIntProperty);
         NativeReflectionCached.GetPropertyRef(ref Weights_PropertyAddress, classAddress, "Weights");
         Weights_Offset         = NativeReflectionCached.GetPropertyOffset(classAddress, "Weights");
         Weights_IsValid        = NativeReflectionCached.ValidatePropertyClass(classAddress, "Weights", Classes.UFloatProperty);
         FEditorElement_IsValid = classAddress != IntPtr.Zero && Indices_IsValid && Weights_IsValid;
         NativeReflection.LogStructIsValid("/Script/Engine.EditorElement", FEditorElement_IsValid);
     }
 }
Пример #3
0
 static void LoadNativeType()
 {
     //if (NativeReflection.CachedTypeInfo.Enabled)
     //{
     //    NativeReflection.CachedTypeInfo typeInfo = NativeReflection.CachedTypeInfo.BuildStruct("/Game/Pong/Test/TestSS.TestSS");
     //    StructSize = typeInfo.Size;
     //    MemberVar_0_IsValid = typeInfo.GetPropertyRefOffsetAndValidate("MemberVar_0_B281C27C4F41FBF7A9E425A51E7BD044", ref MemberVar_0_PropertyAddress, out MemberVar_0_Offset, Classes.UBoolProperty);
     //    MemberVar_1_IsValid = typeInfo.GetPropertyRefOffsetAndValidate("MemberVar_1_26_1BA5D22942BB264D88A4B2A9EEF51AC5", ref MemberVar_1_PropertyAddress, out MemberVar_1_Offset, Classes.UArrayProperty);
     //    MemberVar_21_IsValid = typeInfo.GetPropertyOffsetAndValidate("MemberVar_1_26_1BA5D22942BB264D88A4B2A9EEF51AC5", out MemberVar_21_Offset, Classes.UByteProperty);
     //    FTestSS_IsValid = typeInfo.Exists && MemberVar_0_IsValid && MemberVar_1_IsValid && MemberVar_21_IsValid;
     //    typeInfo.LogIsValid(FTestSS_IsValid);
     //}
     //else
     {
         IntPtr classAddress = NativeReflection.GetStruct("/Game/Pong/Test/TestSS.TestSS");
         StructSize = NativeReflection.GetStructSize(classAddress);
         NativeReflectionCached.GetPropertyRef(ref MemberVar_0_PropertyAddress, classAddress, "MemberVar_0_B281C27C4F41FBF7A9E425A51E7BD044");
         MemberVar_0_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "MemberVar_0_B281C27C4F41FBF7A9E425A51E7BD044");
         MemberVar_0_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "MemberVar_0_B281C27C4F41FBF7A9E425A51E7BD044", Classes.UBoolProperty);
         NativeReflectionCached.GetPropertyRef(ref MemberVar_1_PropertyAddress, classAddress, "MemberVar_1_26_1BA5D22942BB264D88A4B2A9EEF51AC5");
         MemberVar_1_Offset   = NativeReflectionCached.GetPropertyOffset(classAddress, "MemberVar_1_26_1BA5D22942BB264D88A4B2A9EEF51AC5");
         MemberVar_1_IsValid  = NativeReflectionCached.ValidatePropertyClass(classAddress, "MemberVar_1_26_1BA5D22942BB264D88A4B2A9EEF51AC5", Classes.UArrayProperty);
         MemberVar_21_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "MemberVar_21_25_B2CA1FFA4E95516B70C7E9A68011B260");
         MemberVar_21_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "MemberVar_21_25_B2CA1FFA4E95516B70C7E9A68011B260", Classes.UByteProperty);
         FTestSS_IsValid      = classAddress != IntPtr.Zero && MemberVar_0_IsValid && MemberVar_1_IsValid && MemberVar_21_IsValid;
         NativeReflection.LogStructIsValid("/Game/Pong/Test/TestSS.TestSS", FTestSS_IsValid);
     }
 }
Пример #4
0
 static void LoadNativeType()
 {
     IntPtr classAddress = NativeReflection.GetStruct("/Script/CoreUObject.IntPoint");
     FIntPoint_StructSize = NativeReflection.GetStructSize(classAddress);
     X_Offset = NativeReflectionCached.GetPropertyOffset(classAddress, "X");
     X_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "X", Classes.UIntProperty);
     Y_Offset = NativeReflectionCached.GetPropertyOffset(classAddress, "Y");
     Y_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "Y", Classes.UIntProperty);
     NativeReflection.ValidateBlittableStructSize(classAddress, typeof(FIntPoint));
 }
Пример #5
0
        static void LoadNativeType()
        {
            IntPtr classAddress = NativeReflection.GetStruct("/Script/CoreUObject.TwoVectors");

            FTwoVectors_StructSize = NativeReflection.GetStructSize(classAddress);
            v1_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "v1");
            v1_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "v1", Classes.UStructProperty);
            v2_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "v2");
            v2_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "v2", Classes.UStructProperty);
            NativeReflection.ValidateBlittableStructSize(classAddress, typeof(FTwoVectors));
        }
Пример #6
0
        static void LoadNativeType()
        {
            IntPtr classAddress = NativeReflection.GetStruct("/Script/CoreUObject.FloatInterval");

            FFloatInterval_StructSize = NativeReflection.GetStructSize(classAddress);
            Min_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "Min");
            Min_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "Min", Classes.UFloatProperty);
            Max_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "Max");
            Max_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "Max", Classes.UFloatProperty);
            NativeReflection.ValidateBlittableStructSize(classAddress, typeof(FFloatInterval));
        }
Пример #7
0
        static void LoadNativeType()
        {
            IntPtr classAddress = NativeReflection.GetStruct("/Script/CoreUObject.Int32RangeBound");

            FInt32RangeBound_StructSize = NativeReflection.GetStructSize(classAddress);
            NativeReflectionCached.GetPropertyRef(ref Type_PropertyAddress, classAddress, "Type");
            Type_Offset   = NativeReflectionCached.GetPropertyOffset(classAddress, "Type");
            Type_IsValid  = NativeReflectionCached.ValidatePropertyClass(classAddress, "Type", Classes.UByteProperty);
            Value_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "Value");
            Value_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "Value", Classes.UFloatProperty);
            NativeReflection.ValidateBlittableStructSize(classAddress, typeof(FInt32RangeBound));
        }
Пример #8
0
        static void LoadNativeType()
        {
            IntPtr classAddress = NativeReflection.GetStruct("/Script/CoreUObject.Rotator");

            FRotator_StructSize = NativeReflection.GetStructSize(classAddress);
            Pitch_Offset        = NativeReflectionCached.GetPropertyOffset(classAddress, "Pitch");
            Pitch_IsValid       = NativeReflectionCached.ValidatePropertyClass(classAddress, "Pitch", Classes.UFloatProperty);
            Yaw_Offset          = NativeReflectionCached.GetPropertyOffset(classAddress, "Yaw");
            Yaw_IsValid         = NativeReflectionCached.ValidatePropertyClass(classAddress, "Yaw", Classes.UFloatProperty);
            Roll_Offset         = NativeReflectionCached.GetPropertyOffset(classAddress, "Roll");
            Roll_IsValid        = NativeReflectionCached.ValidatePropertyClass(classAddress, "Roll", Classes.UFloatProperty);
            NativeReflection.ValidateBlittableStructSize(classAddress, typeof(FRotator));
        }
Пример #9
0
        static void LoadNativeType()
        {
            IntPtr classAddress = NativeReflection.GetStruct("/Script/CoreUObject.FloatRange");

            FFloatRange_StructSize = NativeReflection.GetStructSize(classAddress);
            LowerBound_Offset      = NativeReflectionCached.GetPropertyOffset(classAddress, "LowerBound");
            LowerBound_IsValid     = NativeReflectionCached.ValidatePropertyClass(classAddress, "LowerBound", Classes.UStructProperty);
            UpperBound_Offset      = NativeReflectionCached.GetPropertyOffset(classAddress, "UpperBound");
            UpperBound_IsValid     = NativeReflectionCached.ValidatePropertyClass(classAddress, "UpperBound", Classes.UStructProperty);
            FFloatRange_IsValid    = classAddress != IntPtr.Zero && LowerBound_IsValid && UpperBound_IsValid;
            NativeReflection.LogStructIsValid("/Script/CoreUObject.FloatRange", FFloatRange_IsValid);
            NativeReflection.ValidateBlittableStructSize(classAddress, typeof(FFloatRange));
        }
Пример #10
0
        static void LoadNativeType()
        {
            IntPtr classAddress = NativeReflection.GetStruct("/Script/CoreUObject.BoxSphereBounds");

            FBoxSphereBounds_StructSize = NativeReflection.GetStructSize(classAddress);
            Origin_Offset        = NativeReflectionCached.GetPropertyOffset(classAddress, "Origin");
            Origin_IsValid       = NativeReflectionCached.ValidatePropertyClass(classAddress, "Origin", Classes.UStructProperty);
            BoxExtent_Offset     = NativeReflectionCached.GetPropertyOffset(classAddress, "BoxExtent");
            BoxExtent_IsValid    = NativeReflectionCached.ValidatePropertyClass(classAddress, "BoxExtent", Classes.UStructProperty);
            SphereRadius_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "SphereRadius");
            SphereRadius_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "SphereRadius", Classes.UFloatProperty);
            NativeReflection.ValidateBlittableStructSize(classAddress, typeof(FBoxSphereBounds));
        }
Пример #11
0
        static void LoadNativeType()
        {
            IntPtr classAddress = NativeReflection.GetStruct("/Script/CoreUObject.RandomStream");

            FRandomStream_StructSize = NativeReflection.GetStructSize(classAddress);
            InitialSeed_Offset       = NativeReflectionCached.GetPropertyOffset(classAddress, "InitialSeed");
            InitialSeed_IsValid      = NativeReflectionCached.ValidatePropertyClass(classAddress, "InitialSeed", Classes.UIntProperty);
            Seed_Offset           = NativeReflectionCached.GetPropertyOffset(classAddress, "Seed");
            Seed_IsValid          = NativeReflectionCached.ValidatePropertyClass(classAddress, "Seed", Classes.UIntProperty);
            FRandomStream_IsValid = classAddress != IntPtr.Zero && InitialSeed_IsValid && Seed_IsValid;
            NativeReflection.LogStructIsValid("/Script/CoreUObject.RandomStream", FRandomStream_IsValid);
            NativeReflection.ValidateBlittableStructSize(classAddress, typeof(FRandomStream));
        }
Пример #12
0
        static void LoadNativeType()
        {
            IntPtr classAddress = NativeReflection.GetStruct("/Script/CoreUObject.Box");

            FBox_StructSize = NativeReflection.GetStructSize(classAddress);
            Min_Offset      = NativeReflectionCached.GetPropertyOffset(classAddress, "Min");
            Min_IsValid     = NativeReflectionCached.ValidatePropertyClass(classAddress, "Min", Classes.UStructProperty);
            Max_Offset      = NativeReflectionCached.GetPropertyOffset(classAddress, "Max");
            Max_IsValid     = NativeReflectionCached.ValidatePropertyClass(classAddress, "Max", Classes.UStructProperty);
            IsValid_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "IsValid");
            IsValid_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "IsValid", Classes.UByteProperty);
            //NativeReflection.ValidateBlittableStructSize(classAddress, typeof(FBox));
        }
Пример #13
0
        static void LoadNativeType()
        {
            IntPtr classAddress = NativeReflection.GetStruct("/Script/CoreUObject.Box2D");

            FBox2D_StructSize = NativeReflection.GetStructSize(classAddress);
            Min_Offset        = NativeReflectionCached.GetPropertyOffset(classAddress, "Min");
            Min_IsValid       = NativeReflectionCached.ValidatePropertyClass(classAddress, "Min", Classes.UStructProperty);
            Max_Offset        = NativeReflectionCached.GetPropertyOffset(classAddress, "Max");
            Max_IsValid       = NativeReflectionCached.ValidatePropertyClass(classAddress, "Max", Classes.UStructProperty);
            bIsValid_Offset   = NativeReflectionCached.GetPropertyOffset(classAddress, "bIsValid");
            bIsValid_IsValid  = NativeReflectionCached.ValidatePropertyClass(classAddress, "bIsValid", Classes.UByteProperty);
            FBox2D_IsValid    = classAddress != IntPtr.Zero && Min_IsValid && Max_IsValid && bIsValid_IsValid;
            NativeReflection.LogStructIsValid("/Script/CoreUObject.Box2D", FBox2D_IsValid);
        }
Пример #14
0
        static void LoadNativeType()
        {
            IntPtr classAddress = NativeReflection.GetStruct("/Script/CoreUObject.Color");

            FColor_StructSize = NativeReflection.GetStructSize(classAddress);
            B_Offset          = NativeReflectionCached.GetPropertyOffset(classAddress, "B");
            B_IsValid         = NativeReflectionCached.ValidatePropertyClass(classAddress, "B", Classes.UByteProperty);
            G_Offset          = NativeReflectionCached.GetPropertyOffset(classAddress, "G");
            G_IsValid         = NativeReflectionCached.ValidatePropertyClass(classAddress, "G", Classes.UByteProperty);
            R_Offset          = NativeReflectionCached.GetPropertyOffset(classAddress, "R");
            R_IsValid         = NativeReflectionCached.ValidatePropertyClass(classAddress, "R", Classes.UByteProperty);
            A_Offset          = NativeReflectionCached.GetPropertyOffset(classAddress, "A");
            A_IsValid         = NativeReflectionCached.ValidatePropertyClass(classAddress, "A", Classes.UByteProperty);
            NativeReflection.ValidateBlittableStructSize(classAddress, typeof(FColor));
        }
Пример #15
0
        static void LoadNativeType()
        {
            IntPtr classAddress = NativeReflection.GetStruct("/Script/CoreUObject.Vector4");

            FVector4_StructSize = NativeReflection.GetStructSize(classAddress);
            X_Offset            = NativeReflectionCached.GetPropertyOffset(classAddress, "X");
            X_IsValid           = NativeReflectionCached.ValidatePropertyClass(classAddress, "X", Classes.UFloatProperty);
            Y_Offset            = NativeReflectionCached.GetPropertyOffset(classAddress, "Y");
            Y_IsValid           = NativeReflectionCached.ValidatePropertyClass(classAddress, "Y", Classes.UFloatProperty);
            Z_Offset            = NativeReflectionCached.GetPropertyOffset(classAddress, "Z");
            Z_IsValid           = NativeReflectionCached.ValidatePropertyClass(classAddress, "Z", Classes.UFloatProperty);
            W_Offset            = NativeReflectionCached.GetPropertyOffset(classAddress, "W");
            W_IsValid           = NativeReflectionCached.ValidatePropertyClass(classAddress, "W", Classes.UFloatProperty);
            NativeReflection.ValidateBlittableStructSize(classAddress, typeof(FVector4));
        }
Пример #16
0
        static void LoadNativeType()
        {
            IntPtr classAddress = NativeReflection.GetStruct("/Script/Engine.TickFunction");

            FTickFunction_StructSize = NativeReflection.GetStructSize(classAddress);

            NativeReflectionCached.GetPropertyRef(ref TickGroup_PropertyAddress, classAddress, "TickGroup");
            TickGroup_Offset = NativeReflectionCached.GetPropertyOffset(classAddress, "TickGroup");
            bool TickGroup_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "TickGroup", Classes.UByteProperty);

            NativeReflectionCached.GetPropertyRef(ref EndTickGroup_PropertyAddress, classAddress, "EndTickGroup");
            EndTickGroup_Offset = NativeReflectionCached.GetPropertyOffset(classAddress, "EndTickGroup");
            bool EndTickGroup_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "EndTickGroup", Classes.UByteProperty);

            NativeReflectionCached.GetPropertyRef(ref TickEvenWhenPaused_PropertyAddress, classAddress, "bTickEvenWhenPaused");
            TickEvenWhenPaused_Offset = NativeReflectionCached.GetPropertyOffset(classAddress, "bTickEvenWhenPaused");
            bool TickEvenWhenPaused_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "bTickEvenWhenPaused", Classes.UBoolProperty);

            NativeReflectionCached.GetPropertyRef(ref CanEverTick_PropertyAddress, classAddress, "bCanEverTick");
            CanEverTick_Offset = NativeReflectionCached.GetPropertyOffset(classAddress, "bCanEverTick");
            bool CanEverTick_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "bCanEverTick", Classes.UBoolProperty);

            NativeReflectionCached.GetPropertyRef(ref StartWithTickEnabled_PropertyAddress, classAddress, "bStartWithTickEnabled");
            StartWithTickEnabled_Offset = NativeReflectionCached.GetPropertyOffset(classAddress, "bStartWithTickEnabled");
            bool StartWithTickEnabled_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "bStartWithTickEnabled", Classes.UBoolProperty);

            NativeReflectionCached.GetPropertyRef(ref AllowTickOnDedicatedServer_PropertyAddress, classAddress, "bAllowTickOnDedicatedServer");
            AllowTickOnDedicatedServer_Offset = NativeReflectionCached.GetPropertyOffset(classAddress, "bAllowTickOnDedicatedServer");
            bool AllowTickOnDedicatedServer_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "bAllowTickOnDedicatedServer", Classes.UBoolProperty);

            TickInterval_Offset = NativeReflectionCached.GetPropertyOffset(classAddress, "TickInterval");
            bool TickInterval_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "TickInterval", Classes.UFloatProperty);

            bool FTickFunction_IsValid =
                classAddress != IntPtr.Zero &&
                TickGroup_IsValid &&
                EndTickGroup_IsValid &&
                TickEvenWhenPaused_IsValid &&
                CanEverTick_IsValid &&
                StartWithTickEnabled_IsValid &&
                AllowTickOnDedicatedServer_IsValid &&
                TickInterval_IsValid;

            Debug.Assert(FTickFunction_IsValid);
        }
Пример #17
0
        static void LoadNativeType()
        {
            IntPtr classAddress = NativeReflection.GetStruct("/Script/CoreUObject.InterpCurvePointLinearColor");

            FInterpCurvePointLinearColor_StructSize = NativeReflection.GetStructSize(classAddress);
            InVal_Offset          = NativeReflectionCached.GetPropertyOffset(classAddress, "InVal");
            InVal_IsValid         = NativeReflectionCached.ValidatePropertyClass(classAddress, "InVal", Classes.UFloatProperty);
            OutVal_Offset         = NativeReflectionCached.GetPropertyOffset(classAddress, "OutVal");
            OutVal_IsValid        = NativeReflectionCached.ValidatePropertyClass(classAddress, "OutVal", Classes.UStructProperty);
            ArriveTangent_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "ArriveTangent");
            ArriveTangent_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "ArriveTangent", Classes.UStructProperty);
            LeaveTangent_Offset   = NativeReflectionCached.GetPropertyOffset(classAddress, "LeaveTangent");
            LeaveTangent_IsValid  = NativeReflectionCached.ValidatePropertyClass(classAddress, "LeaveTangent", Classes.UStructProperty);
            NativeReflectionCached.GetPropertyRef(ref InterpMode_PropertyAddress, classAddress, "InterpMode");
            InterpMode_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "InterpMode");
            InterpMode_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "InterpMode", Classes.UByteProperty);
            NativeReflection.ValidateBlittableStructSize(classAddress, typeof(FInterpCurvePointLinearColor));
        }
Пример #18
0
 static void LoadNativeType()
 {
     //if (NativeReflection.CachedTypeInfo.Enabled)
     //{
     //    NativeReflection.CachedTypeInfo typeInfo = NativeReflection.CachedTypeInfo.BuildStruct("/Script/MaterialShaderQualitySettings.MaterialQualityOverrides");
     //    StructSize = typeInfo.Size;
     //    EnableOverride_IsValid = typeInfo.GetPropertyRefOffsetAndValidate("bEnableOverride", ref EnableOverride_PropertyAddress, out EnableOverride_Offset, Classes.UBoolProperty);
     //    ForceFullyRough_IsValid = typeInfo.GetPropertyRefOffsetAndValidate("bForceFullyRough", ref ForceFullyRough_PropertyAddress, out ForceFullyRough_Offset, Classes.UBoolProperty);
     //    ForceNonMetal_IsValid = typeInfo.GetPropertyRefOffsetAndValidate("bForceNonMetal", ref ForceNonMetal_PropertyAddress, out ForceNonMetal_Offset, Classes.UBoolProperty);
     //    ForceDisableLMDirectionality_IsValid = typeInfo.GetPropertyRefOffsetAndValidate("bForceDisableLMDirectionality", ref ForceDisableLMDirectionality_PropertyAddress, out ForceDisableLMDirectionality_Offset, Classes.UBoolProperty);
     //    ForceLQReflections_IsValid = typeInfo.GetPropertyRefOffsetAndValidate("bForceLQReflections", ref ForceLQReflections_PropertyAddress, out ForceLQReflections_Offset, Classes.UBoolProperty);
     //    MobileCSMQuality_IsValid = typeInfo.GetPropertyRefOffsetAndValidate("MobileCSMQuality", ref MobileCSMQuality_PropertyAddress, out MobileCSMQuality_Offset, Classes.UEnumProperty);
     //    FMaterialQualityOverrides_IsValid = typeInfo.Exists && EnableOverride_IsValid && ForceFullyRough_IsValid && ForceNonMetal_IsValid && ForceDisableLMDirectionality_IsValid && ForceLQReflections_IsValid && MobileCSMQuality_IsValid;
     //    typeInfo.LogIsValid(FMaterialQualityOverrides_IsValid);
     //}
     //else
     {
         IntPtr classAddress = NativeReflection.GetStruct("/Script/MaterialShaderQualitySettings.MaterialQualityOverrides");
         StructSize = NativeReflection.GetStructSize(classAddress);
         NativeReflectionCached.GetPropertyRef(ref EnableOverride_PropertyAddress, classAddress, "bEnableOverride");
         EnableOverride_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "bEnableOverride");
         EnableOverride_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "bEnableOverride", Classes.UBoolProperty);
         NativeReflectionCached.GetPropertyRef(ref ForceFullyRough_PropertyAddress, classAddress, "bForceFullyRough");
         ForceFullyRough_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "bForceFullyRough");
         ForceFullyRough_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "bForceFullyRough", Classes.UBoolProperty);
         NativeReflectionCached.GetPropertyRef(ref ForceNonMetal_PropertyAddress, classAddress, "bForceNonMetal");
         ForceNonMetal_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "bForceNonMetal");
         ForceNonMetal_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "bForceNonMetal", Classes.UBoolProperty);
         NativeReflectionCached.GetPropertyRef(ref ForceDisableLMDirectionality_PropertyAddress, classAddress, "bForceDisableLMDirectionality");
         ForceDisableLMDirectionality_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "bForceDisableLMDirectionality");
         ForceDisableLMDirectionality_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "bForceDisableLMDirectionality", Classes.UBoolProperty);
         NativeReflectionCached.GetPropertyRef(ref ForceLQReflections_PropertyAddress, classAddress, "bForceLQReflections");
         ForceLQReflections_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "bForceLQReflections");
         ForceLQReflections_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "bForceLQReflections", Classes.UBoolProperty);
         NativeReflectionCached.GetPropertyRef(ref MobileCSMQuality_PropertyAddress, classAddress, "MobileCSMQuality");
         MobileCSMQuality_Offset           = NativeReflectionCached.GetPropertyOffset(classAddress, "MobileCSMQuality");
         MobileCSMQuality_IsValid          = NativeReflectionCached.ValidatePropertyClass(classAddress, "MobileCSMQuality", Classes.UEnumProperty);
         FMaterialQualityOverrides_IsValid = classAddress != IntPtr.Zero && EnableOverride_IsValid && ForceFullyRough_IsValid && ForceNonMetal_IsValid && ForceDisableLMDirectionality_IsValid && ForceLQReflections_IsValid && MobileCSMQuality_IsValid;
         NativeReflection.LogStructIsValid("/Script/MaterialShaderQualitySettings.MaterialQualityOverrides", FMaterialQualityOverrides_IsValid);
     }
 }
Пример #19
0
        static void LoadNativeType()
        {
            IntPtr classAddress = NativeReflection.GetStruct("/Script/CoreUObject.OrientedBox");

            FOrientedBox_StructSize = NativeReflection.GetStructSize(classAddress);
            Center_Offset           = NativeReflectionCached.GetPropertyOffset(classAddress, "Center");
            Center_IsValid          = NativeReflectionCached.ValidatePropertyClass(classAddress, "Center", Classes.UStructProperty);
            AxisX_Offset            = NativeReflectionCached.GetPropertyOffset(classAddress, "AxisX");
            AxisX_IsValid           = NativeReflectionCached.ValidatePropertyClass(classAddress, "AxisX", Classes.UStructProperty);
            AxisY_Offset            = NativeReflectionCached.GetPropertyOffset(classAddress, "AxisY");
            AxisY_IsValid           = NativeReflectionCached.ValidatePropertyClass(classAddress, "AxisY", Classes.UStructProperty);
            AxisZ_Offset            = NativeReflectionCached.GetPropertyOffset(classAddress, "AxisZ");
            AxisZ_IsValid           = NativeReflectionCached.ValidatePropertyClass(classAddress, "AxisZ", Classes.UStructProperty);
            ExtentX_Offset          = NativeReflectionCached.GetPropertyOffset(classAddress, "ExtentX");
            ExtentX_IsValid         = NativeReflectionCached.ValidatePropertyClass(classAddress, "ExtentX", Classes.UFloatProperty);
            ExtentY_Offset          = NativeReflectionCached.GetPropertyOffset(classAddress, "ExtentY");
            ExtentY_IsValid         = NativeReflectionCached.ValidatePropertyClass(classAddress, "ExtentY", Classes.UFloatProperty);
            ExtentZ_Offset          = NativeReflectionCached.GetPropertyOffset(classAddress, "ExtentZ");
            ExtentZ_IsValid         = NativeReflectionCached.ValidatePropertyClass(classAddress, "ExtentZ", Classes.UFloatProperty);
            NativeReflection.ValidateBlittableStructSize(classAddress, typeof(FOrientedBox));
        }
Пример #20
0
 static void LoadNativeType()
 {
     //if (NativeReflection.CachedTypeInfo.Enabled)
     //{
     //    NativeReflection.CachedTypeInfo typeInfo = NativeReflection.CachedTypeInfo.BuildStruct("/Script/USharp.MyStructCustomCtor");
     //    StructSize = typeInfo.Size;
     //    MyValue_IsValid = typeInfo.GetPropertyOffsetAndValidate("MyValue", out MyValue_Offset, Classes.UStrProperty);
     //    FMyStructCustomCtor_IsValid = typeInfo.Exists && MyValue_IsValid;
     //    typeInfo.LogIsValid(FMyStructCustomCtor_IsValid);
     //}
     //else
     {
         IntPtr classAddress = NativeReflection.GetStruct("/Script/USharp.MyStructCustomCtor");
         StructSize      = NativeReflection.GetStructSize(classAddress);
         MyValue_Offset  = NativeReflectionCached.GetPropertyOffset(classAddress, "MyValue");
         MyValue_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "MyValue", Classes.UStrProperty);
         //MyValue_IsValid = NativeReflectionCached.ValidatePropertyClass(classAddress, "MyValue", Classes.UIntProperty);
         FMyStructCustomCtor_IsValid = classAddress != IntPtr.Zero && MyValue_IsValid;
         NativeReflection.LogStructIsValid("/Script/USharp.MyStructCustomCtor", FMyStructCustomCtor_IsValid);
     }
 }
Пример #21
0
        static void LoadNativeType()
        {
            IntPtr classAddress = NativeReflection.GetStruct("/Script/OnlineSubsystemUtils.BlueprintSessionResult");

            FBlueprintSessionResult_StructSize = NativeReflection.GetStructSize(classAddress);
        }