移除一些不必要的日志
添加打印Table的LUA 函数
This commit is contained in:
parent
952a20ecb0
commit
b8a3a5897b
@ -20,7 +20,7 @@ namespace XLua.CSObjectWrap
|
|||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
Debug.Log("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
|
|
||||||
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(Thousandto.Core.Asset.AnimationPlayer);
|
System.Type type = typeof(Thousandto.Core.Asset.AnimationPlayer);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 14, 13, 2);
|
Utils.BeginObjectRegister(type, L, translator, 0, 14, 13, 2);
|
||||||
|
@ -653,7 +653,7 @@ namespace XLua.CSObjectWrap
|
|||||||
|
|
||||||
static void wrapInit4(LuaEnv luaenv, ObjectTranslator translator)
|
static void wrapInit4(LuaEnv luaenv, ObjectTranslator translator)
|
||||||
{
|
{
|
||||||
Debug.Log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> wrapInit4");
|
|
||||||
translator.DelayWrapLoader(typeof(Thousandto.Code.Logic.FSkinModelConfig), ThousandtoCodeLogicFSkinModelConfigWrap.__Register);
|
translator.DelayWrapLoader(typeof(Thousandto.Code.Logic.FSkinModelConfig), ThousandtoCodeLogicFSkinModelConfigWrap.__Register);
|
||||||
|
|
||||||
|
|
||||||
|
@ -231,4 +231,39 @@ function UnityUtils.UNITY_WINDOWS()
|
|||||||
return L_UNITY_WINDOWS()
|
return L_UNITY_WINDOWS()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- 打印table
|
||||||
|
function print_r ( t )
|
||||||
|
local print_r_cache={}
|
||||||
|
local function sub_print_r(t,indent)
|
||||||
|
if (print_r_cache[tostring(t)]) then
|
||||||
|
print(indent.."*"..tostring(t))
|
||||||
|
else
|
||||||
|
print_r_cache[tostring(t)]=true
|
||||||
|
if (type(t)=="table") then
|
||||||
|
for pos,val in pairs(t) do
|
||||||
|
if (type(val)=="table") then
|
||||||
|
print(indent.."["..pos.."] => "..tostring(t).." {")
|
||||||
|
sub_print_r(val,indent..string.rep(" ",string.len(pos)+8))
|
||||||
|
print(indent..string.rep(" ",string.len(pos)+6).."}")
|
||||||
|
elseif (type(val)=="string") then
|
||||||
|
print(indent.."["..pos..'] => "'..val..'"')
|
||||||
|
else
|
||||||
|
print(indent.."["..pos.."] => "..tostring(val))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
else
|
||||||
|
print(indent..tostring(t))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if (type(t)=="table") then
|
||||||
|
print(tostring(t).." {")
|
||||||
|
sub_print_r(t," ")
|
||||||
|
print("}")
|
||||||
|
else
|
||||||
|
sub_print_r(t," ")
|
||||||
|
end
|
||||||
|
print()
|
||||||
|
end
|
||||||
|
|
||||||
return UnityUtils
|
return UnityUtils
|
||||||
|
Loading…
x
Reference in New Issue
Block a user