Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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)));
 }
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo n.º 9
0
 public void Update(UFieldAddress property)
 {
     if (arrayProperty != property.Address)
     {
         arrayProperty = property.Address;
         innerProperty = property.GenericArg1Address;
         elementSize   = property.GenericArg1Size;
     }
 }
Ejemplo n.º 10
0
 public void Update(UFieldAddress property)
 {
     if (setProperty != property.Address)
     {
         setProperty     = property.Address;
         elementProp     = property.GenericArg1Address;
         elementSize     = property.GenericArg1Size;
         elementArrayDim = property.GenericArg1ArrayDim;
     }
 }
Ejemplo 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;
 }
Ejemplo 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;
        }
Ejemplo 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;
     }
 }
Ejemplo 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));
        }
Ejemplo 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));
        }
Ejemplo 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)
 {
 }
Ejemplo n.º 17
0
 public TArrayReadOnly(UObject owner, UFieldAddress arrayProperty, IntPtr address, MarshalingDelegates <T> .FromNative fromNative)
     : base(owner, arrayProperty, address, fromNative, null)
 {
 }
Ejemplo n.º 18
0
 public TFixedSizeArrayBase(IntPtr address, UFieldAddress property, UObject owner)
 {
     this.address  = address;
     this.property = property;
     this.owner    = owner;
 }
Ejemplo n.º 19
0
 public TFixedSizeArrayReadOnly(IntPtr address, UFieldAddress property, UObject owner)
     : base(address, property, owner)
 {
 }
Ejemplo 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)
 {
 }