少年修仙传客户端基础资源
client_Wu Xijin
2018-10-29 8efd04f4314e44c5b732e95163383b1911d279cb
Assets/XLua/Src/Utils.cs
@@ -454,7 +454,7 @@
            for (int i = 0; i < props.Length; ++i)
            {
                PropertyInfo prop = props[i];
                if (prop.Name == "Item" && prop.GetIndexParameters().Length > 0)
            if (prop.GetIndexParameters().Length > 0)
                {
                    items.Add(prop);
                }
@@ -462,8 +462,12 @@
            var item_array = items.ToArray();
            item_getter = item_array.Length > 0 ? genItemGetter(type, item_array) : null;
            item_setter = item_array.Length > 0 ? genItemSetter(type, item_array) : null; ;
         item_setter = item_array.Length > 0 ? genItemSetter(type, item_array) : null;
            MethodInfo[] methods = type.GetMethods(flag);
         if (access == BindingFlags.NonPublic)
         {
            methods = type.GetMethods(flag | BindingFlags.Public).Join(methods, p => p.Name, q => q.Name, (p, q) => p).ToArray();
         }
            Dictionary<MethodKey, List<MemberInfo>> pending_methods = new Dictionary<MethodKey, List<MemberInfo>>();
            for (int i = 0; i < methods.Length; ++i)
            {
@@ -1376,6 +1380,12 @@
            LuaAPI.lua_pushvalue(L, cls_table);
            LuaAPI.lua_rawset(L, -3);
            LuaAPI.lua_pop(L, 1);
         LuaAPI.xlua_getglobal(L, "CS");
         ObjectTranslatorPool.Instance.Find(L).PushAny(L, type);
         LuaAPI.lua_pushvalue(L, cls_table);
         LuaAPI.lua_rawset(L, -3);
         LuaAPI.lua_pop(L, 1);
        }
        public const string LuaIndexsFieldName = "LuaIndexs";