Skip to content

Commit

Permalink
更新tolua#到1.0.7.388版
Browse files Browse the repository at this point in the history
  • Loading branch information
jarjin2000 committed Jan 6, 2018
1 parent 7df3720 commit f157f58
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 7 additions & 3 deletions Assets/LuaFramework/ToLua/Editor/ToLuaExport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ public static class ToLuaExport
"Security.GetChainOfTrustValue",
"Texture2D.alphaIsTransparency",
"WWW.movie",
"WWW.GetMovieTexture",
"WebCamTexture.MarkNonReadable",
"WebCamTexture.isReadable",
"Graphic.OnRebuildRequested",
Expand All @@ -149,6 +150,7 @@ public static class ToLuaExport
"MonoBehaviour.runInEditMode",
"TextureFormat.DXT1Crunched",
"TextureFormat.DXT5Crunched",
"Texture.imageContentsHash",
//NGUI
"UIInput.ProcessEvent",
"UIWidget.showHandlesWithMoveTool",
Expand Down Expand Up @@ -623,8 +625,8 @@ bool IsByteBuffer()
}
}

public static List<MemberInfo> memberInfoFilter = new List<MemberInfo>
{
public static List<MemberInfo> memberInfoFilter = new List<MemberInfo>
{
//可精确查找一个函数
//Type.GetMethod(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers);
};
Expand Down Expand Up @@ -741,12 +743,14 @@ static void GenBaseOpFunction(List<_MethodBase> list)

public static void Generate(string dir)
{
#if !EXPORT_INTERFACE
Type iterType = typeof(System.Collections.IEnumerator);

if (type.IsInterface && type != iterType)
{
return;
}
#endif

//Debugger.Log("Begin Generate lua Wrap for class {0}", className);
sb = new StringBuilder();
Expand Down Expand Up @@ -1619,7 +1623,7 @@ static bool IsIEnumerator(Type t)

static string GetPushFunction(Type t, bool isByteBuffer = false)
{
if (t.IsEnum || t.IsPrimitive || t == typeof(string) || t == typeof(LuaTable) || t == typeof(LuaCSFunction) || t == typeof(LuaThread)
if (t.IsEnum || t.IsPrimitive || t == typeof(string) || t == typeof(LuaTable) || t == typeof(LuaCSFunction) || t == typeof(LuaThread) || t == typeof(LuaFunction)
|| t == typeof(Type) || t == typeof(IntPtr) || typeof(Delegate).IsAssignableFrom(t) || t == typeof(LuaByteBuffer) // || t == typeof(LuaInteger64)
|| t == typeof(Vector3) || t == typeof(Vector2) || t == typeof(Vector4) || t == typeof(Quaternion) || t == typeof(Color) || t == typeof(RaycastHit)
|| t == typeof(Ray) || t == typeof(Touch) || t == typeof(Bounds) || t == typeof(object))
Expand Down
8 changes: 4 additions & 4 deletions ReadMe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@

支持平台:PC/MAC/Android(armv7-a + Intel x86)/iOS(armv7 + arm64)


寻找热更新人才与项目组到“七之猫”网站 http://www.sevencat.cn/


**资料地址**<br>
框架文档地址 http://doc.ulua.org/
网盘下载地址 http://pan.baidu.com/s/1nu59wzJ
Expand All @@ -21,6 +17,10 @@ XlsxToLua: https://github.com/zhangqi-ulua/XlsxToLua
UnityHello: https://github.com/woshihuo12/UnityHello
Excel配置:https://github.com/sy-yanghuan/proton

//-------------2018-01-07-------------
(1)更新tolua#到1.0.7.388版
(2)修复AppConst.LuaByteMode = true报数据越界BUG

//-------------2017-12-19-------------
(1)更新tolua#到1.0.7.386版

Expand Down

0 comments on commit f157f58

Please sign in to comment.