Пример #1
0
 public void ToNative(IntPtr nativeStruct)
 {
     if (!FMyStructCustomCtor_IsValid)
     {
         NativeReflection.LogInvalidStructAccessed("/Script/USharp.MyStructCustomCtor");
         return;
     }
     //BlittableTypeMarshaler<int>.ToNative(IntPtr.Add(nativeStruct, MyValue_Offset), MyValue);
     FStringMarshaler.ToNative(IntPtr.Add(nativeStruct, MyValue_Offset), MyValue);
 }
Пример #2
0
        public void ToNative(IntPtr nativeStruct)
        {
            if (!FEditorElement_IsValid)
            {
                NativeReflection.LogInvalidStructAccessed("/Script/Engine.EditorElement");
                return;
            }
            TFixedSizeArrayMarshaler <int> .ToNative(IntPtr.Add(nativeStruct, Indices_Offset), 0, Indices_PropertyAddress.Address, Indices);

            TFixedSizeArrayMarshaler <float> .ToNative(IntPtr.Add(nativeStruct, Weights_Offset), 0, Weights_PropertyAddress.Address, Weights);
        }
Пример #3
0
 public FMyStructCustomCtor(IntPtr nativeStruct)
 {
     if (!FMyStructCustomCtor_IsValid)
     {
         NativeReflection.LogInvalidStructAccessed("/Script/USharp.MyStructCustomCtor");
         MyValue = FStringMarshaler.DefaultString;
         //MyValue = 0;
         return;
     }
     MyValue = FStringMarshaler.FromNative(IntPtr.Add(nativeStruct, MyValue_Offset));
     //MyValue = BlittableTypeMarshaler<int>.FromNative(IntPtr.Add(nativeStruct, MyValue_Offset));
 }
Пример #4
0
        public void ToNative(IntPtr nativeStruct)
        {
            if (!FTestSS_IsValid)
            {
                NativeReflection.LogInvalidStructAccessed("/Game/Pong/Test/TestSS.TestSS");
                return;
            }
            BoolMarshaler.ToNative(IntPtr.Add(nativeStruct, MemberVar_0_Offset), 0, MemberVar_0_PropertyAddress.Address, MemberVar_0);
            TArrayCopyMarshaler <float> MemberVar_1_Marshaler = new TArrayCopyMarshaler <float>(1, MemberVar_1_PropertyAddress, CachedMarshalingDelegates <float, BlittableTypeMarshaler <float> > .FromNative, CachedMarshalingDelegates <float, BlittableTypeMarshaler <float> > .ToNative);

            MemberVar_1_Marshaler.ToNative(IntPtr.Add(nativeStruct, MemberVar_1_Offset), MemberVar_1);
            BlittableTypeMarshaler <byte> .ToNative(IntPtr.Add(nativeStruct, MemberVar_21_Offset), MemberVar_21);
        }
Пример #5
0
 public void ToNative(IntPtr nativeStruct)
 {
     if (!FMaterialQualityOverrides_IsValid)
     {
         NativeReflection.LogInvalidStructAccessed("/Script/MaterialShaderQualitySettings.MaterialQualityOverrides");
         return;
     }
     BoolMarshaler.ToNative(IntPtr.Add(nativeStruct, EnableOverride_Offset), 0, EnableOverride_PropertyAddress.Address, EnableOverride);
     BoolMarshaler.ToNative(IntPtr.Add(nativeStruct, ForceFullyRough_Offset), 0, ForceFullyRough_PropertyAddress.Address, ForceFullyRough);
     BoolMarshaler.ToNative(IntPtr.Add(nativeStruct, ForceNonMetal_Offset), 0, ForceNonMetal_PropertyAddress.Address, ForceNonMetal);
     BoolMarshaler.ToNative(IntPtr.Add(nativeStruct, ForceDisableLMDirectionality_Offset), 0, ForceDisableLMDirectionality_PropertyAddress.Address, ForceDisableLMDirectionality);
     BoolMarshaler.ToNative(IntPtr.Add(nativeStruct, ForceLQReflections_Offset), 0, ForceLQReflections_PropertyAddress.Address, ForceLQReflections);
     EnumMarshaler <EMobileCSMQuality> .ToNative(IntPtr.Add(nativeStruct, MobileCSMQuality_Offset), 0, MobileCSMQuality_PropertyAddress.Address, MobileCSMQuality);
 }
Пример #6
0
 public FMaterialQualityOverrides(IntPtr nativeStruct)
 {
     if (!FMaterialQualityOverrides_IsValid)
     {
         NativeReflection.LogInvalidStructAccessed("/Script/MaterialShaderQualitySettings.MaterialQualityOverrides");
         EnableOverride  = default(bool);
         ForceFullyRough = default(bool);
         ForceNonMetal   = default(bool);
         ForceDisableLMDirectionality = default(bool);
         ForceLQReflections           = default(bool);
         MobileCSMQuality             = default(EMobileCSMQuality);
         return;
     }
     EnableOverride  = BoolMarshaler.FromNative(IntPtr.Add(nativeStruct, EnableOverride_Offset), 0, EnableOverride_PropertyAddress.Address);
     ForceFullyRough = BoolMarshaler.FromNative(IntPtr.Add(nativeStruct, ForceFullyRough_Offset), 0, ForceFullyRough_PropertyAddress.Address);
     ForceNonMetal   = BoolMarshaler.FromNative(IntPtr.Add(nativeStruct, ForceNonMetal_Offset), 0, ForceNonMetal_PropertyAddress.Address);
     ForceDisableLMDirectionality = BoolMarshaler.FromNative(IntPtr.Add(nativeStruct, ForceDisableLMDirectionality_Offset), 0, ForceDisableLMDirectionality_PropertyAddress.Address);
     ForceLQReflections           = BoolMarshaler.FromNative(IntPtr.Add(nativeStruct, ForceLQReflections_Offset), 0, ForceLQReflections_PropertyAddress.Address);
     MobileCSMQuality             = EnumMarshaler <EMobileCSMQuality> .FromNative(IntPtr.Add(nativeStruct, MobileCSMQuality_Offset), 0, MobileCSMQuality_PropertyAddress.Address);
 }