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

Method GetTypeOf

Assets/XLua/Src/ObjectTranslator.cs:814–823  ·  view source on GitHub ↗
(RealStatePtr L, int idx)

Source from the content-addressed store, hash-verified

812 }
813
814 public Type GetTypeOf(RealStatePtr L, int idx)
815 {
816 Type type = null;
817 int type_id = LuaAPI.xlua_gettypeid(L, idx);
818 if (type_id != -1)
819 {
820 typeMap.TryGetValue(type_id, out type);
821 }
822 return type;
823 }
824
825 public bool Assignable<T>(RealStatePtr L, int index)
826 {

Callers 1

genCheckerMethod · 0.80

Calls 2

xlua_gettypeidMethod · 0.80
TryGetValueMethod · 0.80

Tested by

no test coverage detected