Exemplo n.º 1
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));
        }
Exemplo n.º 2
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));
        }