| | |
| | | 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); |
| | | } |
| | |
| | | |
| | | 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) |
| | | { |
| | |
| | | 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"; |