MCPcopy Create free account
hub / github.com/Tencent/xLua / XLuaPrivateAccessible

Function XLuaPrivateAccessible

Assets/XLua/Src/StaticLuaCallbacks.cs:1034–1057  ·  view source on GitHub ↗
(RealStatePtr L)

Source from the content-addressed store, hash-verified

1032 }
1033
1034 [MonoPInvokeCallback(typeof(LuaCSFunction))]
1035 public static int XLuaPrivateAccessible(RealStatePtr L)
1036 {
1037 try
1038 {
1039 ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
1040 Type type = getType(L, translator, 1); ;
1041 if (type == null)
1042 {
1043 return LuaAPI.luaL_error(L, "xlua.private_accessible, can not find c# type");
1044 }
1045
1046 while(type != null)
1047 {
1048 translator.PrivateAccessible(L, type);
1049 type = type.BaseType();
1050 }
1051 return 0;
1052 }
1053 catch (Exception e)
1054 {
1055 return LuaAPI.luaL_error(L, "c# exception in xlua.private_accessible: " + e);
1056 }
1057 }
1058
1059 [MonoPInvokeCallback(typeof(LuaCSFunction))]
1060 public static int XLuaMetatableOperation(RealStatePtr L)

Callers

nothing calls this directly

Calls 5

FindMethod · 0.80
luaL_errorMethod · 0.80
PrivateAccessibleMethod · 0.80
BaseTypeMethod · 0.80
getTypeFunction · 0.70

Tested by

no test coverage detected