Exemplo 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;
        }
Exemplo n.º 2
0
 public void Bind()
 {
     Native_UField.Bind(Address);
 }