uplev xlua
This commit is contained in:
1
Assets/XLua/Src/Editor/Template/LuaWrapPusher.tpl.txt
Executable file → Normal file
1
Assets/XLua/Src/Editor/Template/LuaWrapPusher.tpl.txt
Executable file → Normal file
@@ -76,6 +76,7 @@ namespace XLua
|
||||
end
|
||||
if type_info.Flag == CS.XLua.OptimizeFlag.PackAsTable then
|
||||
%>
|
||||
<%if PushObjectNeedTranslator(type_info) then %> ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);<%end%>
|
||||
LuaAPI.xlua_pushcstable(L, <%=type_info.FieldInfos.Count%>, <%=type_id_var_name%>);
|
||||
<%ForEachCsList(type_info.FieldInfos, function(fieldInfo)%>
|
||||
LuaAPI.xlua_pushasciistring(L, "<%=fieldInfo.Name%>");
|
||||
|
||||
Reference in New Issue
Block a user