Esempio n. 1
0
 public TSetReadOnlyMarshaler(int length, UFieldAddress setProperty,
                              MarshalingDelegates <T> .FromNative fromNative, MarshalingDelegates <T> .ToNative toNative)
 {
     property          = setProperty;
     wrappers          = new TSetReadOnly <T> [length];
     elementFromNative = fromNative;
 }
Esempio n. 2
0
 public TArrayReadOnlyMarshaler(int length, UFieldAddress arrayProperty,
                                MarshalingDelegates <T> .FromNative fromNative, MarshalingDelegates <T> .ToNative toNative)
 {
     property        = arrayProperty;
     wrappers        = new TArrayReadOnly <T> [length];
     innerFromNative = fromNative;
 }
Esempio n. 3
0
 public static bool GetPropertyRef(ref UFieldAddress property, IntPtr unrealStruct, string propertyName)
 {
     if (property == null)
     {
         property = new UFieldAddress();
     }
     return(property.Update(GetProperty(unrealStruct, propertyName)));
 }
Esempio n. 4
0
 public TSetCopyMarshaler(int length, UFieldAddress setProperty,
                          MarshalingDelegates <T> .FromNative fromNative, MarshalingDelegates <T> .ToNative toNative)
 {
     property          = setProperty;
     helper            = new FScriptSetHelper(property.Address);
     elementFromNative = fromNative;
     elementToNative   = toNative;
 }
Esempio n. 5
0
 public TArrayCopyMarshaler(int length, UFieldAddress arrayProperty,
                            MarshalingDelegates <T> .FromNative fromNative, MarshalingDelegates <T> .ToNative toNative)
 {
     property        = arrayProperty;
     helper          = new FScriptArrayHelper(property.Address);
     innerFromNative = fromNative;
     innerToNative   = toNative;
 }
Esempio n. 6
0
 public TMapReadOnlyMarshaler(int length, UFieldAddress mapProperty,
                              MarshalingDelegates <TKey> .FromNative keyFromNative, MarshalingDelegates <TKey> .ToNative keyToNative,
                              MarshalingDelegates <TValue> .FromNative valueFromNative, MarshalingDelegates <TValue> .ToNative valueToNative)
 {
     property             = mapProperty;
     wrappers             = new TMapReadOnly <TKey, TValue> [length];
     this.keyFromNative   = keyFromNative;
     this.valueFromNative = valueFromNative;
 }
Esempio n. 7
0
 public TArrayReadWriteMarshaler(int length, UFieldAddress arrayProperty,
                                 MarshalingDelegates <T> .FromNative fromNative, MarshalingDelegates <T> .ToNative toNative)
 {
     property        = arrayProperty;
     helper          = new FScriptArrayHelper(property.Address);
     wrappers        = new TArrayReadWrite <T> [length];
     innerFromNative = fromNative;
     innerToNative   = toNative;
 }
Esempio n. 8
0
 public TSetReadWriteMarshaler(int length, UFieldAddress setProperty,
                               MarshalingDelegates <T> .FromNative fromNative, MarshalingDelegates <T> .ToNative toNative)
 {
     property          = setProperty;
     helper            = new FScriptSetHelper(property.Address);
     wrappers          = new TSetReadWrite <T> [length];
     elementFromNative = fromNative;
     elementToNative   = toNative;
 }
Esempio n. 9
0
 public void Update(UFieldAddress property)
 {
     if (arrayProperty != property.Address)
     {
         arrayProperty = property.Address;
         innerProperty = property.GenericArg1Address;
         elementSize   = property.GenericArg1Size;
     }
 }
Esempio n. 10
0
 public void Update(UFieldAddress property)
 {
     if (setProperty != property.Address)
     {
         setProperty     = property.Address;
         elementProp     = property.GenericArg1Address;
         elementSize     = property.GenericArg1Size;
         elementArrayDim = property.GenericArg1ArrayDim;
     }
 }
Esempio n. 11
0
 public TMapCopyMarshaler(int length, UFieldAddress mapProperty,
                          MarshalingDelegates <TKey> .FromNative keyFromNative, MarshalingDelegates <TKey> .ToNative keyToNative,
                          MarshalingDelegates <TValue> .FromNative valueFromNative, MarshalingDelegates <TValue> .ToNative valueToNative)
 {
     property             = mapProperty;
     helper               = new FScriptMapHelper(property.Address);
     this.keyFromNative   = keyFromNative;
     this.keyToNative     = keyToNative;
     this.valueFromNative = valueFromNative;
     this.valueToNative   = valueToNative;
 }
Esempio n. 12
0
        public TArrayBase(UObject owner, UFieldAddress arrayProperty, IntPtr address,
                          MarshalingDelegates <T> .FromNative fromNative, MarshalingDelegates <T> .ToNative toNative)
        {
            property = arrayProperty;
            array    = (FScriptArray *)address;

            ArrayHelper = new FScriptArrayHelper(property.Address, address);

            Owner      = owner;
            FromNative = fromNative;
            ToNative   = toNative;
        }
Esempio n. 13
0
 public void Update(UFieldAddress property)
 {
     if (mapProperty != property.Address)
     {
         mapProperty   = property.Address;
         keyProp       = property.GenericArg1Address;
         keySize       = property.GenericArg1Size;
         keyArrayDim   = property.GenericArg1ArrayDim;
         valueProp     = property.GenericArg2Address;
         valueSize     = property.GenericArg2Size;
         valueArrayDim = property.GenericArg2ArrayDim;
     }
 }
Esempio n. 14
0
        public TSetBase(UObject owner, UFieldAddress setProperty, IntPtr address,
                        MarshalingDelegates <T> .FromNative fromNative, MarshalingDelegates <T> .ToNative toNative)
        {
            property = setProperty;
            set      = (FScriptSet *)address;

            SetHelper = new FScriptSetHelper(property.Address, address);

            Owner      = owner;
            FromNative = fromNative;
            ToNative   = toNative;

            ContainerHashValidator.Validate(Native_USetProperty.Get_ElementProp(setProperty.Address));
        }
Esempio n. 15
0
        public TMapBase(UObject owner, UFieldAddress mapProperty, IntPtr address,
                        MarshalingDelegates <TKey> .FromNative keyFromNative, MarshalingDelegates <TKey> .ToNative keyToNative,
                        MarshalingDelegates <TValue> .FromNative valueFromNative, MarshalingDelegates <TValue> .ToNative valueToNative)
        {
            property = mapProperty;
            map      = (FScriptMap *)address;

            MapHelper = new FScriptMapHelper(property.Address, address);

            Owner           = owner;
            KeyFromNative   = keyFromNative;
            KeyToNative     = keyToNative;
            ValueFromNative = valueFromNative;
            ValueToNative   = valueToNative;

            ContainerHashValidator.Validate(Native_UMapProperty.Get_KeyProp(property.Address));
        }
Esempio n. 16
0
 public TArrayReadWrite(UObject owner, UFieldAddress arrayProperty, IntPtr address,
                        MarshalingDelegates <T> .FromNative fromNative, MarshalingDelegates <T> .ToNative toNative)
     : base(owner, arrayProperty, address, fromNative, toNative)
 {
 }
Esempio n. 17
0
 public TArrayReadOnly(UObject owner, UFieldAddress arrayProperty, IntPtr address, MarshalingDelegates <T> .FromNative fromNative)
     : base(owner, arrayProperty, address, fromNative, null)
 {
 }
Esempio n. 18
0
 public TFixedSizeArrayBase(IntPtr address, UFieldAddress property, UObject owner)
 {
     this.address  = address;
     this.property = property;
     this.owner    = owner;
 }
Esempio n. 19
0
 public TFixedSizeArrayReadOnly(IntPtr address, UFieldAddress property, UObject owner)
     : base(address, property, owner)
 {
 }
Esempio n. 20
0
 public TMapReadWrite(UObject owner, UFieldAddress mapProperty, IntPtr address,
                      MarshalingDelegates <TKey> .FromNative keyFromNative, MarshalingDelegates <TKey> .ToNative keyToNative,
                      MarshalingDelegates <TValue> .FromNative valueFromNative, MarshalingDelegates <TValue> .ToNative valueToNative)
     : base(owner, mapProperty, address, keyFromNative, keyToNative, valueFromNative, valueToNative)
 {
 }