Esempio n. 1
0
        /// <summary>
        /// Create properties / functions and link the class
        /// </summary>
        public void Initialize()
        {
            Native_UStruct.Set_Children(StaticClass, IntPtr.Zero);

            BindingFlags propertyBindingFlags = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly;

            foreach (PropertyInfo property in Type.GetProperties(propertyBindingFlags))
            {
                if (property.GetCustomAttribute <USharpPathAttribute>() != null)
                {
                    CreateProperty(StaticClass, property);
                }
            }

            Native_UField.Bind(StaticClass);
            Native_UStruct.StaticLink(StaticClass, true);
            firstRun = false;
        }
Esempio n. 2
0
 public void StaticLink(bool relinkExistingProperties)
 {
     Native_UStruct.StaticLink(Address, relinkExistingProperties);
 }