├── .gitignore ├── Assets ├── LuaFramework.meta ├── LuaFramework │ ├── Editor.meta │ ├── Editor │ │ ├── Packager.cs │ │ └── Packager.cs.meta │ ├── HotUpdate.meta │ ├── HotUpdate │ │ ├── Prefabs.meta │ │ ├── Prefabs │ │ │ ├── Activity.meta │ │ │ └── Activity │ │ │ │ ├── ActivityMainPanel.prefab │ │ │ │ └── ActivityMainPanel.prefab.meta │ │ ├── Textures.meta │ │ └── Textures │ │ │ ├── Activity.meta │ │ │ └── Activity │ │ │ ├── logo.png │ │ │ └── logo.png.meta │ ├── Lua.meta │ ├── Lua │ │ ├── 3rd.meta │ │ ├── 3rd │ │ │ ├── cjson.meta │ │ │ ├── cjson │ │ │ │ ├── example1.json │ │ │ │ ├── example1.json.meta │ │ │ │ ├── example2.json │ │ │ │ ├── example2.json.meta │ │ │ │ ├── example3.json │ │ │ │ ├── example3.json.meta │ │ │ │ ├── example4.json │ │ │ │ ├── example4.json.meta │ │ │ │ ├── example5.json │ │ │ │ ├── example5.json.meta │ │ │ │ ├── json2lua.lua │ │ │ │ ├── json2lua.lua.meta │ │ │ │ ├── lua2json.lua │ │ │ │ ├── lua2json.lua.meta │ │ │ │ ├── test.lua │ │ │ │ ├── test.lua.meta │ │ │ │ ├── util.lua │ │ │ │ └── util.lua.meta │ │ │ ├── luabitop.meta │ │ │ ├── luabitop │ │ │ │ ├── Makefile │ │ │ │ ├── Makefile.meta │ │ │ │ ├── Makefile.mingw │ │ │ │ ├── Makefile.mingw.meta │ │ │ │ ├── README │ │ │ │ ├── README.meta │ │ │ │ ├── bitbench.lua │ │ │ │ ├── bitbench.lua.meta │ │ │ │ ├── bittest.lua │ │ │ │ ├── bittest.lua.meta │ │ │ │ ├── doc.meta │ │ │ │ ├── doc │ │ │ │ │ ├── api.html │ │ │ │ │ ├── api.html.meta │ │ │ │ │ ├── bluequad-print.css │ │ │ │ │ ├── bluequad-print.css.meta │ │ │ │ │ ├── bluequad.css │ │ │ │ │ ├── bluequad.css.meta │ │ │ │ │ ├── changes.html │ │ │ │ │ ├── changes.html.meta │ │ │ │ │ ├── contact.html │ │ │ │ │ ├── contact.html.meta │ │ │ │ │ ├── img.meta │ │ │ │ │ ├── img │ │ │ │ │ │ ├── contact.png │ │ │ │ │ │ └── contact.png.meta │ │ │ │ │ ├── index.html │ │ │ │ │ ├── index.html.meta │ │ │ │ │ ├── install.html │ │ │ │ │ ├── install.html.meta │ │ │ │ │ ├── semantics.html │ │ │ │ │ └── semantics.html.meta │ │ │ │ ├── installpath.lua │ │ │ │ ├── installpath.lua.meta │ │ │ │ ├── md5test.lua │ │ │ │ ├── md5test.lua.meta │ │ │ │ ├── msvcbuild.bat │ │ │ │ ├── msvcbuild.bat.meta │ │ │ │ ├── msvctest.bat │ │ │ │ ├── msvctest.bat.meta │ │ │ │ ├── nsievebits.lua │ │ │ │ └── nsievebits.lua.meta │ │ │ ├── pbc.meta │ │ │ ├── pbc │ │ │ │ ├── addressbook.pb │ │ │ │ ├── addressbook.pb.meta │ │ │ │ ├── addressbook.proto │ │ │ │ ├── addressbook.proto.meta │ │ │ │ ├── parser.lua │ │ │ │ ├── parser.lua.meta │ │ │ │ ├── protobuf.lua │ │ │ │ ├── protobuf.lua.meta │ │ │ │ ├── test.lua │ │ │ │ ├── test.lua.meta │ │ │ │ ├── test2.lua │ │ │ │ ├── test2.lua.meta │ │ │ │ ├── testparser.lua │ │ │ │ └── testparser.lua.meta │ │ │ ├── pblua.meta │ │ │ ├── pblua │ │ │ │ ├── login.proto │ │ │ │ ├── login.proto.meta │ │ │ │ ├── login_pb.lua │ │ │ │ ├── login_pb.lua.meta │ │ │ │ ├── person_pb.lua │ │ │ │ └── person_pb.lua.meta │ │ │ ├── sproto.meta │ │ │ └── sproto │ │ │ │ ├── print_r.lua │ │ │ │ ├── print_r.lua.meta │ │ │ │ ├── sproto.lua │ │ │ │ ├── sproto.lua.meta │ │ │ │ ├── sprotoparser.lua │ │ │ │ ├── sprotoparser.lua.meta │ │ │ │ ├── test.lua │ │ │ │ ├── test.lua.meta │ │ │ │ ├── testall.lua │ │ │ │ ├── testall.lua.meta │ │ │ │ ├── testrpc.lua │ │ │ │ └── testrpc.lua.meta │ │ ├── Common.meta │ │ ├── Common │ │ │ ├── define.lua │ │ │ ├── define.lua.meta │ │ │ ├── functions.lua │ │ │ ├── functions.lua.meta │ │ │ ├── protocal.lua │ │ │ └── protocal.lua.meta │ │ ├── Controller.meta │ │ ├── Controller │ │ │ ├── MessageCtrl.lua │ │ │ ├── MessageCtrl.lua.meta │ │ │ ├── PromptCtrl.lua │ │ │ └── PromptCtrl.lua.meta │ │ ├── HotFix.meta │ │ ├── HotFix │ │ │ ├── hot-fix-code-test.lua │ │ │ └── hot-fix-code-test.lua.meta │ │ ├── Logic.meta │ │ ├── Logic │ │ │ ├── CtrlManager.lua │ │ │ ├── CtrlManager.lua.meta │ │ │ ├── Game.lua │ │ │ ├── Game.lua.meta │ │ │ ├── LuaClass.lua │ │ │ ├── LuaClass.lua.meta │ │ │ ├── Network.lua │ │ │ └── Network.lua.meta │ │ ├── Main.lua │ │ ├── Main.lua.meta │ │ ├── View.meta │ │ ├── View │ │ │ ├── MessagePanel.lua │ │ │ ├── MessagePanel.lua.meta │ │ │ ├── PromptPanel.lua │ │ │ └── PromptPanel.lua.meta │ │ ├── eventlib.lua │ │ ├── eventlib.lua.meta │ │ ├── events.lua │ │ └── events.lua.meta │ ├── Scenes.meta │ ├── Scenes │ │ ├── main.unity │ │ └── main.unity.meta │ ├── Src.meta │ └── Src │ │ ├── Common.meta │ │ ├── Common │ │ ├── LuaBehaviour.cs │ │ └── LuaBehaviour.cs.meta │ │ ├── ConstDefine.meta │ │ ├── ConstDefine │ │ ├── AppConst.cs │ │ ├── AppConst.cs.meta │ │ ├── ManagerName.cs │ │ ├── ManagerName.cs.meta │ │ ├── NotiConst.cs │ │ └── NotiConst.cs.meta │ │ ├── Controller.meta │ │ ├── Controller │ │ ├── Command.meta │ │ └── Command │ │ │ ├── SocketCommand.cs │ │ │ ├── SocketCommand.cs.meta │ │ │ ├── StartUpCommand.cs │ │ │ └── StartUpCommand.cs.meta │ │ ├── Framework.meta │ │ ├── Framework │ │ ├── AppFacade.cs │ │ ├── AppFacade.cs.meta │ │ ├── Core.meta │ │ ├── Core │ │ │ ├── Base.cs │ │ │ ├── Base.cs.meta │ │ │ ├── Controller.cs │ │ │ ├── Controller.cs.meta │ │ │ ├── Facade.cs │ │ │ ├── Facade.cs.meta │ │ │ ├── Manager.cs │ │ │ ├── Manager.cs.meta │ │ │ ├── Message.cs │ │ │ ├── Message.cs.meta │ │ │ ├── View.cs │ │ │ └── View.cs.meta │ │ ├── Interface.meta │ │ └── Interface │ │ │ ├── ICommand.cs │ │ │ ├── ICommand.cs.meta │ │ │ ├── IController.cs │ │ │ ├── IController.cs.meta │ │ │ ├── IManager.cs │ │ │ ├── IManager.cs.meta │ │ │ ├── IMessage.cs │ │ │ ├── IMessage.cs.meta │ │ │ ├── IView.cs │ │ │ └── IView.cs.meta │ │ ├── Main.cs │ │ ├── Main.cs.meta │ │ ├── Manager.meta │ │ ├── Manager │ │ ├── GameManager.cs │ │ ├── GameManager.cs.meta │ │ ├── Interface.meta │ │ ├── Interface │ │ │ ├── ITimerBehaviour.cs │ │ │ └── ITimerBehaviour.cs.meta │ │ ├── LuaManager.cs │ │ ├── LuaManager.cs.meta │ │ ├── NetworkManager.cs │ │ ├── NetworkManager.cs.meta │ │ ├── ObjectPoolManager.cs │ │ ├── ObjectPoolManager.cs.meta │ │ ├── PanelManager.cs │ │ ├── PanelManager.cs.meta │ │ ├── ResourceManager.cs │ │ ├── ResourceManager.cs.meta │ │ ├── SoundManager.cs │ │ ├── SoundManager.cs.meta │ │ ├── ThreadManager.cs │ │ ├── ThreadManager.cs.meta │ │ ├── TimerManager.cs │ │ └── TimerManager.cs.meta │ │ ├── Network.meta │ │ ├── Network │ │ ├── ByteBuffer.cs │ │ ├── ByteBuffer.cs.meta │ │ ├── Converter.cs │ │ ├── Converter.cs.meta │ │ ├── Protocal.cs │ │ ├── Protocal.cs.meta │ │ ├── SocketClient.cs │ │ └── SocketClient.cs.meta │ │ ├── ObjectPool.meta │ │ ├── ObjectPool │ │ ├── GameObjectPool.cs │ │ ├── GameObjectPool.cs.meta │ │ ├── ObjectPool.cs │ │ └── ObjectPool.cs.meta │ │ ├── Utility.meta │ │ ├── Utility │ │ ├── LuaFileUtils.cs │ │ ├── LuaFileUtils.cs.meta │ │ ├── LuaHelper.cs │ │ ├── LuaHelper.cs.meta │ │ ├── Util.cs │ │ └── Util.cs.meta │ │ ├── View.meta │ │ └── View │ │ ├── AppView.cs │ │ └── AppView.cs.meta ├── Plugins.meta ├── Plugins │ ├── Android.meta │ ├── Android │ │ ├── libs.meta │ │ └── libs │ │ │ ├── armeabi-v7a.meta │ │ │ ├── armeabi-v7a │ │ │ ├── libxlua.so │ │ │ └── libxlua.so.meta │ │ │ ├── x86.meta │ │ │ └── x86 │ │ │ ├── libxlua.so │ │ │ └── libxlua.so.meta │ ├── iOS.meta │ ├── iOS │ │ ├── libxlua.a │ │ └── libxlua.a.meta │ ├── x86.meta │ ├── x86 │ │ ├── xlua.dll │ │ └── xlua.dll.meta │ ├── x86_64.meta │ ├── x86_64 │ │ ├── xlua.dll │ │ └── xlua.dll.meta │ ├── xlua.bundle.meta │ └── xlua.bundle │ │ ├── Contents.meta │ │ └── Contents │ │ ├── Info.plist │ │ ├── Info.plist.meta │ │ ├── MacOS.meta │ │ └── MacOS │ │ ├── xlua │ │ └── xlua.meta ├── XLua.meta └── XLua │ ├── CHANGELOG.txt │ ├── CHANGELOG.txt.meta │ ├── Doc.meta │ ├── Doc │ ├── Materials.meta │ ├── Materials │ │ ├── logo.mat │ │ └── logo.mat.meta │ ├── XLua_API.doc │ ├── XLua_API.doc.meta │ ├── XLua增加删除第三方lua库.doc │ ├── XLua增加删除第三方lua库.doc.meta │ ├── XLua复杂值类型(struct)gc优化指南.doc │ ├── XLua复杂值类型(struct)gc优化指南.doc.meta │ ├── XLua性能分析工具.doc │ ├── XLua性能分析工具.doc.meta │ ├── XLua教程.doc │ ├── XLua教程.doc.meta │ ├── XLua的配置.doc │ ├── XLua的配置.doc.meta │ ├── custom_generate.md │ ├── custom_generate.md.meta │ ├── faq.md │ ├── faq.md.meta │ ├── features.md │ ├── features.md.meta │ ├── hotfix.md │ ├── hotfix.md.meta │ ├── logo.png │ ├── logo.png.meta │ ├── xLua.png │ └── xLua.png.meta │ ├── Examples.meta │ ├── Examples │ ├── 01_Helloworld.meta │ ├── 01_Helloworld │ │ ├── Helloworld.cs │ │ ├── Helloworld.cs.meta │ │ ├── Helloworld.unity │ │ └── Helloworld.unity.meta │ ├── 02_U3DScripting.meta │ ├── 02_U3DScripting │ │ ├── LuaBehaviour.cs │ │ ├── LuaBehaviour.cs.meta │ │ ├── LuaTestScript.lua.txt │ │ ├── LuaTestScript.lua.txt.meta │ │ ├── U3DScripting.unity │ │ └── U3DScripting.unity.meta │ ├── 03_UIEvent.meta │ ├── 03_UIEvent │ │ ├── ButtonInteraction.lua.txt │ │ ├── ButtonInteraction.lua.txt.meta │ │ ├── UI.unity │ │ └── UI.unity.meta │ ├── 04_LuaObjectOrented.meta │ ├── 04_LuaObjectOrented │ │ ├── InvokeLua.cs │ │ ├── InvokeLua.cs.meta │ │ ├── InvokeLua.unity │ │ └── InvokeLua.unity.meta │ ├── 05_NoGc.meta │ ├── 05_NoGc │ │ ├── NoGc.cs │ │ ├── NoGc.cs.meta │ │ ├── NoGc.unity │ │ └── NoGc.unity.meta │ ├── 06_Coroutine.meta │ ├── 06_Coroutine │ │ ├── Coroutine.cs │ │ ├── Coroutine.cs.meta │ │ ├── Coroutine.unity │ │ ├── Coroutine.unity.meta │ │ ├── Coroutine_Runner.cs │ │ ├── Coroutine_Runner.cs.meta │ │ ├── Resources.meta │ │ └── Resources │ │ │ ├── coruntine_test.lua.txt │ │ │ ├── coruntine_test.lua.txt.meta │ │ │ ├── cs_coroutine.lua.txt │ │ │ └── cs_coroutine.lua.txt.meta │ ├── 07_AsyncTest.meta │ ├── 07_AsyncTest │ │ ├── AsyncTest.cs │ │ ├── AsyncTest.cs.meta │ │ ├── AsyncTest.unity │ │ ├── AsyncTest.unity.meta │ │ ├── MessageBox.cs │ │ ├── MessageBox.cs.meta │ │ ├── Resources.meta │ │ └── Resources │ │ │ ├── AlertBox.prefab │ │ │ ├── AlertBox.prefab.meta │ │ │ ├── ConfirmBox.prefab │ │ │ ├── ConfirmBox.prefab.meta │ │ │ ├── async_test.lua.txt │ │ │ ├── async_test.lua.txt.meta │ │ │ ├── message_box.lua.txt │ │ │ └── message_box.lua.txt.meta │ ├── 08_Hotfix.meta │ ├── 08_Hotfix │ │ ├── HotfixTest.cs │ │ ├── HotfixTest.cs.meta │ │ ├── HotfixTest.unity │ │ ├── HotfixTest.unity.meta │ │ ├── HotfixTest2.cs │ │ ├── HotfixTest2.cs.meta │ │ ├── HotfixTest2.unity │ │ ├── HotfixTest2.unity.meta │ │ ├── StatefullTest.cs │ │ └── StatefullTest.cs.meta │ ├── 09_GenericMethod.meta │ ├── 09_GenericMethod │ │ ├── Foo.cs │ │ ├── Foo.cs.meta │ │ ├── GenericMethod.unity │ │ ├── GenericMethod.unity.meta │ │ ├── GenericMethodExample.cs │ │ └── GenericMethodExample.cs.meta │ ├── ExampleGenConfig.cs │ └── ExampleGenConfig.cs.meta │ ├── Resources.meta │ ├── Resources │ ├── perf.meta │ ├── perf │ │ ├── memory.lua.txt │ │ ├── memory.lua.txt.meta │ │ ├── profiler.lua.txt │ │ └── profiler.lua.txt.meta │ ├── tdr.meta │ ├── tdr │ │ ├── tdr.lua.txt │ │ └── tdr.lua.txt.meta │ ├── xlua.meta │ └── xlua │ │ ├── util.lua.txt │ │ └── util.lua.txt.meta │ ├── Src.meta │ ├── Src │ ├── CodeEmit.cs │ ├── CodeEmit.cs.meta │ ├── CopyByValue.cs │ ├── CopyByValue.cs.meta │ ├── DelegateBridge.cs │ ├── DelegateBridge.cs.meta │ ├── Editor.meta │ ├── Editor │ │ ├── Generator.cs │ │ ├── Generator.cs.meta │ │ ├── Hotfix.cs │ │ ├── Hotfix.cs.meta │ │ ├── LinkXmlGen.meta │ │ ├── LinkXmlGen │ │ │ ├── LinkXmlGen.cs │ │ │ ├── LinkXmlGen.cs.meta │ │ │ ├── LinkXmlGen.tpl.txt │ │ │ └── LinkXmlGen.tpl.txt.meta │ │ ├── Template.meta │ │ ├── Template │ │ │ ├── LuaClassWrap.tpl.txt │ │ │ ├── LuaClassWrap.tpl.txt.meta │ │ │ ├── LuaDelegateBridge.tpl.txt │ │ │ ├── LuaDelegateBridge.tpl.txt.meta │ │ │ ├── LuaDelegateWrap.tpl.txt │ │ │ ├── LuaDelegateWrap.tpl.txt.meta │ │ │ ├── LuaEnumWrap.tpl.txt │ │ │ ├── LuaEnumWrap.tpl.txt.meta │ │ │ ├── LuaInterfaceBridge.tpl.txt │ │ │ ├── LuaInterfaceBridge.tpl.txt.meta │ │ │ ├── LuaRegister.tpl.txt │ │ │ ├── LuaRegister.tpl.txt.meta │ │ │ ├── LuaWrapPusher.tpl.txt │ │ │ ├── LuaWrapPusher.tpl.txt.meta │ │ │ ├── PackUnpack.tpl.txt │ │ │ ├── PackUnpack.tpl.txt.meta │ │ │ ├── TemplateCommon.lua.txt │ │ │ └── TemplateCommon.lua.txt.meta │ │ ├── TemplateRef.cs │ │ └── TemplateRef.cs.meta │ ├── GenAttributes.cs │ ├── GenAttributes.cs.meta │ ├── GenConfig.cs │ ├── GenConfig.cs.meta │ ├── LuaBase.cs │ ├── LuaBase.cs.meta │ ├── LuaDLL.cs │ ├── LuaDLL.cs.meta │ ├── LuaEnv.cs │ ├── LuaEnv.cs.meta │ ├── LuaException.cs │ ├── LuaException.cs.meta │ ├── LuaFunction.cs │ ├── LuaFunction.cs.meta │ ├── LuaTable.cs │ ├── LuaTable.cs.meta │ ├── MethodWarpsCache.cs │ ├── MethodWarpsCache.cs.meta │ ├── ObjectCasters.cs │ ├── ObjectCasters.cs.meta │ ├── ObjectPool.cs │ ├── ObjectPool.cs.meta │ ├── ObjectTranslator.cs │ ├── ObjectTranslator.cs.meta │ ├── ObjectTranslatorPool.cs │ ├── ObjectTranslatorPool.cs.meta │ ├── StaticLuaCallbacks.cs │ ├── StaticLuaCallbacks.cs.meta │ ├── TemplateEngine.meta │ ├── TemplateEngine │ │ ├── TemplateEngine.cs │ │ └── TemplateEngine.cs.meta │ ├── Utils.cs │ └── Utils.cs.meta │ ├── Tutorial.meta │ └── Tutorial │ ├── CSharpCallLua.meta │ ├── CSharpCallLua │ ├── CSCallLua.cs │ ├── CSCallLua.cs.meta │ ├── CSCallLua.unity │ └── CSCallLua.unity.meta │ ├── LoadLuaScript.meta │ ├── LoadLuaScript │ ├── ByFile.meta │ ├── ByFile │ │ ├── ByFile.cs │ │ ├── ByFile.cs.meta │ │ ├── ByFile.unity │ │ ├── ByFile.unity.meta │ │ ├── Resources.meta │ │ └── Resources │ │ │ ├── byfile.lua.txt │ │ │ └── byfile.lua.txt.meta │ ├── ByString.meta │ ├── ByString │ │ ├── ByString.cs │ │ ├── ByString.cs.meta │ │ ├── ByString.unity │ │ └── ByString.unity.meta │ ├── Loader.meta │ └── Loader │ │ ├── CustomLoader.cs │ │ ├── CustomLoader.cs.meta │ │ ├── CustomLoader.unity │ │ └── CustomLoader.unity.meta │ ├── LuaCallCSharp.meta │ └── LuaCallCSharp │ ├── LuaCallCs.cs │ ├── LuaCallCs.cs.meta │ ├── LuaCallCs.unity │ └── LuaCallCs.unity.meta ├── README.md └── build ├── CMakeLists.txt ├── cmake ├── android.toolchain.cmake └── iOS.cmake ├── i64lib.c ├── i64lib.h ├── lua-5.1.5 ├── COPYRIGHT ├── HISTORY ├── INSTALL ├── Makefile ├── README ├── doc │ ├── contents.html │ ├── cover.png │ ├── logo.gif │ ├── lua.1 │ ├── lua.css │ ├── lua.html │ ├── luac.1 │ ├── luac.html │ ├── manual.css │ ├── manual.html │ └── readme.html ├── etc │ ├── Makefile │ ├── README │ ├── all.c │ ├── lua.hpp │ ├── lua.ico │ ├── lua.pc │ ├── luavs.bat │ ├── min.c │ ├── noparser.c │ └── strict.lua └── src │ ├── Makefile │ ├── lapi.c │ ├── lapi.h │ ├── lauxlib.c │ ├── lauxlib.h │ ├── lbaselib.c │ ├── lcode.c │ ├── lcode.h │ ├── ldblib.c │ ├── ldebug.c │ ├── ldebug.h │ ├── ldo.c │ ├── ldo.h │ ├── ldump.c │ ├── lfunc.c │ ├── lfunc.h │ ├── lgc.c │ ├── lgc.h │ ├── linit.c │ ├── liolib.c │ ├── llex.c │ ├── llex.h │ ├── llimits.h │ ├── lmathlib.c │ ├── lmem.c │ ├── lmem.h │ ├── loadlib.c │ ├── lobject.c │ ├── lobject.h │ ├── lopcodes.c │ ├── lopcodes.h │ ├── loslib.c │ ├── lparser.c │ ├── lparser.h │ ├── lstate.c │ ├── lstate.h │ ├── lstring.c │ ├── lstring.h │ ├── lstrlib.c │ ├── ltable.c │ ├── ltable.h │ ├── ltablib.c │ ├── ltm.c │ ├── ltm.h │ ├── lua.c │ ├── lua.h │ ├── luac.c │ ├── luaconf.h │ ├── lualib.h │ ├── lundump.c │ ├── lundump.h │ ├── lvm.c │ ├── lvm.h │ ├── lzio.c │ ├── lzio.h │ └── print.c ├── lua-5.3.3 ├── CMakeLists.txt ├── Makefile ├── README ├── cmake │ ├── FindLua.cmake │ ├── FindReadline.cmake │ ├── dist.cmake │ └── lua.cmake ├── dist.info ├── doc │ ├── contents.html │ ├── index.css │ ├── logo.gif │ ├── lua.1 │ ├── lua.css │ ├── luac.1 │ ├── manual.css │ ├── manual.html │ ├── osi-certified-72x60.png │ └── readme.html ├── etc │ ├── lua.ico │ ├── lua.pc │ └── lua_lang.ico └── src │ ├── Makefile │ ├── lapi.c │ ├── lapi.h │ ├── lauxlib.c │ ├── lauxlib.h │ ├── lbaselib.c │ ├── lbitlib.c │ ├── lcode.c │ ├── lcode.h │ ├── lcorolib.c │ ├── lctype.c │ ├── lctype.h │ ├── ldblib.c │ ├── ldebug.c │ ├── ldebug.h │ ├── ldo.c │ ├── ldo.h │ ├── ldump.c │ ├── lfunc.c │ ├── lfunc.h │ ├── lgc.c │ ├── lgc.h │ ├── linit.c │ ├── liolib.c │ ├── llex.c │ ├── llex.h │ ├── llimits.h │ ├── lmathlib.c │ ├── lmem.c │ ├── lmem.h │ ├── loadlib.c │ ├── loadlib_rel.c │ ├── lobject.c │ ├── lobject.h │ ├── lopcodes.c │ ├── lopcodes.h │ ├── loslib.c │ ├── lparser.c │ ├── lparser.h │ ├── lprefix.h │ ├── lstate.c │ ├── lstate.h │ ├── lstring.c │ ├── lstring.h │ ├── lstrlib.c │ ├── ltable.c │ ├── ltable.h │ ├── ltablib.c │ ├── ltm.c │ ├── ltm.h │ ├── lua.c │ ├── lua.h │ ├── lua.hpp │ ├── lua.rc │ ├── luac.c │ ├── luac.rc │ ├── luaconf.h.in │ ├── lualib.h │ ├── lundump.c │ ├── lundump.h │ ├── lutf8lib.c │ ├── lvm.c │ ├── lvm.h │ ├── lzio.c │ ├── lzio.h │ └── wmain.c ├── luajit-2.1.0b2 ├── COPYRIGHT ├── Makefile ├── README ├── doc │ ├── bluequad-print.css │ ├── bluequad.css │ ├── changes.html │ ├── contact.html │ ├── ext_c_api.html │ ├── ext_ffi.html │ ├── ext_ffi_api.html │ ├── ext_ffi_semantics.html │ ├── ext_ffi_tutorial.html │ ├── ext_jit.html │ ├── ext_profiler.html │ ├── extensions.html │ ├── faq.html │ ├── img │ │ └── contact.png │ ├── install.html │ ├── luajit.html │ ├── running.html │ └── status.html ├── dynasm │ ├── dasm_arm.h │ ├── dasm_arm.lua │ ├── dasm_arm64.h │ ├── dasm_arm64.lua │ ├── dasm_mips.h │ ├── dasm_mips.lua │ ├── dasm_ppc.h │ ├── dasm_ppc.lua │ ├── dasm_proto.h │ ├── dasm_x64.lua │ ├── dasm_x86.h │ ├── dasm_x86.lua │ └── dynasm.lua ├── etc │ ├── luajit.1 │ └── luajit.pc └── src │ ├── Makefile │ ├── Makefile.dep │ ├── host │ ├── README │ ├── buildvm.c │ ├── buildvm.h │ ├── buildvm_asm.c │ ├── buildvm_fold.c │ ├── buildvm_lib.c │ ├── buildvm_libbc.h │ ├── buildvm_peobj.c │ ├── genlibbc.lua │ ├── genminilua.lua │ └── minilua.c │ ├── jit │ ├── bc.lua │ ├── bcsave.lua │ ├── dis_arm.lua │ ├── dis_mips.lua │ ├── dis_mipsel.lua │ ├── dis_ppc.lua │ ├── dis_x64.lua │ ├── dis_x86.lua │ ├── dump.lua │ ├── p.lua │ ├── v.lua │ └── zone.lua │ ├── lauxlib.h │ ├── lib_aux.c │ ├── lib_base.c │ ├── lib_bit.c │ ├── lib_debug.c │ ├── lib_ffi.c │ ├── lib_init.c │ ├── lib_io.c │ ├── lib_jit.c │ ├── lib_math.c │ ├── lib_os.c │ ├── lib_package.c │ ├── lib_string.c │ ├── lib_table.c │ ├── lj.supp │ ├── lj_alloc.c │ ├── lj_alloc.h │ ├── lj_api.c │ ├── lj_arch.h │ ├── lj_asm.c │ ├── lj_asm.h │ ├── lj_asm_arm.h │ ├── lj_asm_mips.h │ ├── lj_asm_ppc.h │ ├── lj_asm_x86.h │ ├── lj_bc.c │ ├── lj_bc.h │ ├── lj_bcdump.h │ ├── lj_bcread.c │ ├── lj_bcwrite.c │ ├── lj_buf.c │ ├── lj_buf.h │ ├── lj_carith.c │ ├── lj_carith.h │ ├── lj_ccall.c │ ├── lj_ccall.h │ ├── lj_ccallback.c │ ├── lj_ccallback.h │ ├── lj_cconv.c │ ├── lj_cconv.h │ ├── lj_cdata.c │ ├── lj_cdata.h │ ├── lj_char.c │ ├── lj_char.h │ ├── lj_clib.c │ ├── lj_clib.h │ ├── lj_cparse.c │ ├── lj_cparse.h │ ├── lj_crecord.c │ ├── lj_crecord.h │ ├── lj_ctype.c │ ├── lj_ctype.h │ ├── lj_debug.c │ ├── lj_debug.h │ ├── lj_def.h │ ├── lj_dispatch.c │ ├── lj_dispatch.h │ ├── lj_emit_arm.h │ ├── lj_emit_mips.h │ ├── lj_emit_ppc.h │ ├── lj_emit_x86.h │ ├── lj_err.c │ ├── lj_err.h │ ├── lj_errmsg.h │ ├── lj_ff.h │ ├── lj_ffrecord.c │ ├── lj_ffrecord.h │ ├── lj_frame.h │ ├── lj_func.c │ ├── lj_func.h │ ├── lj_gc.c │ ├── lj_gc.h │ ├── lj_gdbjit.c │ ├── lj_gdbjit.h │ ├── lj_ir.c │ ├── lj_ir.h │ ├── lj_ircall.h │ ├── lj_iropt.h │ ├── lj_jit.h │ ├── lj_lex.c │ ├── lj_lex.h │ ├── lj_lib.c │ ├── lj_lib.h │ ├── lj_load.c │ ├── lj_mcode.c │ ├── lj_mcode.h │ ├── lj_meta.c │ ├── lj_meta.h │ ├── lj_obj.c │ ├── lj_obj.h │ ├── lj_opt_dce.c │ ├── lj_opt_fold.c │ ├── lj_opt_loop.c │ ├── lj_opt_mem.c │ ├── lj_opt_narrow.c │ ├── lj_opt_sink.c │ ├── lj_opt_split.c │ ├── lj_parse.c │ ├── lj_parse.h │ ├── lj_profile.c │ ├── lj_profile.h │ ├── lj_record.c │ ├── lj_record.h │ ├── lj_snap.c │ ├── lj_snap.h │ ├── lj_state.c │ ├── lj_state.h │ ├── lj_str.c │ ├── lj_str.h │ ├── lj_strfmt.c │ ├── lj_strfmt.h │ ├── lj_strfmt_num.c │ ├── lj_strscan.c │ ├── lj_strscan.h │ ├── lj_tab.c │ ├── lj_tab.h │ ├── lj_target.h │ ├── lj_target_arm.h │ ├── lj_target_arm64.h │ ├── lj_target_mips.h │ ├── lj_target_ppc.h │ ├── lj_target_x86.h │ ├── lj_trace.c │ ├── lj_trace.h │ ├── lj_traceerr.h │ ├── lj_udata.c │ ├── lj_udata.h │ ├── lj_vm.h │ ├── lj_vmevent.c │ ├── lj_vmevent.h │ ├── lj_vmmath.c │ ├── ljamalg.c │ ├── lua.h │ ├── lua.hpp │ ├── luaconf.h │ ├── luajit.c │ ├── luajit.h │ ├── lualib.h │ ├── msvcbuild.bat │ ├── msvcbuild_mt.bat │ ├── msvcbuild_xlua.bat │ ├── ps4build.bat │ ├── psvitabuild.bat │ ├── vm_arm.dasc │ ├── vm_arm64.dasc │ ├── vm_mips.dasc │ ├── vm_ppc.dasc │ ├── vm_x64.dasc │ ├── vm_x86.dasc │ ├── xb1build.bat │ └── xedkbuild.bat ├── luasocket ├── auxiliar.c ├── auxiliar.h ├── buffer.c ├── buffer.h ├── except.c ├── except.h ├── inet.c ├── inet.h ├── io.c ├── io.h ├── luasocket.c ├── luasocket.h ├── luasocket_scripts.c ├── luasocket_scripts.h ├── mime.c ├── mime.h ├── options.c ├── options.h ├── select.c ├── select.h ├── serial.c ├── socket.h ├── tcp.c ├── tcp.h ├── timeout.c ├── timeout.h ├── udp.c ├── udp.h ├── unix.c ├── unix.h ├── usocket.c ├── usocket.h ├── wsocket.c └── wsocket.h ├── make_android_lua53.sh ├── make_android_luajit.sh ├── make_ios_lua53.sh ├── make_ios_luajit.sh ├── make_osx_lua53.sh ├── make_osx_luajit.sh ├── make_win32_lua53.bat ├── make_win32_luajit.bat ├── make_win64_lua53.bat ├── make_win64_luajit.bat ├── perflib.c ├── plugin_lua53 └── Plugins │ └── xlua.bundle │ └── Contents │ └── Info.plist ├── plugin_luajit └── Plugins │ └── xlua.bundle │ └── Contents │ └── Info.plist └── xlua.c /.gitignore: -------------------------------------------------------------------------------- 1 | .vs 2 | /Library 3 | /ProjectSettings 4 | /Temp 5 | /Assets/XLua/Gen 6 | /Assets/XLua/Gen.meta 7 | Assets/StreamingAssets.meta 8 | Assets/StreamingAssets/ 9 | Assets/xLuaTest.meta 10 | Assets/xLuaTest/ 11 | /*.csproj 12 | /*.sln 13 | /build/build* 14 | UnityVS 15 | /Assets/UnityVS.meta 16 | .DS_Store 17 | *.o 18 | /build/*/*.a 19 | luajit 20 | buildvm 21 | minilua 22 | libluajit.so 23 | lj_vm.S 24 | build/luajit-2.1.0b2/src/host/buildvm_arch.h 25 | build/luajit-2.1.0b2/src/jit/vmdef.lua 26 | build/luajit-2.1.0b2/src/lj_bcdef.h 27 | build/luajit-2.1.0b2/src/lj_ffdef.h 28 | build/luajit-2.1.0b2/src/lj_folddef.h 29 | build/luajit-2.1.0b2/src/lj_libdef.h 30 | build/luajit-2.1.0b2/src/lj_recdef.h 31 | build/luajit-2.1.0b2/src/lua51.lib 32 | build/luajit-2.1.0b2/src/luajit.exe 33 | build/luajit-2.1.0b2/src/luajit.exp 34 | build/luajit-2.1.0b2/src/luajit.lib 35 | -------------------------------------------------------------------------------- /Assets/LuaFramework.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 520acd0ef3d394dc3ab662a0699a3004 3 | folderAsset: yes 4 | timeCreated: 1487237759 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e7ea376c7b7e464cb166a80c90dd086 3 | folderAsset: yes 4 | timeCreated: 1487237846 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Editor/Packager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c3dbbb718b713b4e97b1db6e31346d7 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/LuaFramework/HotUpdate.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 466f8f744679843a3a1bb7524611800c 3 | folderAsset: yes 4 | timeCreated: 1487237870 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/HotUpdate/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a8f3af8e3e6aa409699cc21a66e1e2e9 3 | folderAsset: yes 4 | timeCreated: 1487595354 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/HotUpdate/Prefabs/Activity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 89494d42798344f3088fcb5be355b29e 3 | folderAsset: yes 4 | timeCreated: 1487650216 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/HotUpdate/Prefabs/Activity/ActivityMainPanel.prefab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/LuaFramework/HotUpdate/Prefabs/Activity/ActivityMainPanel.prefab -------------------------------------------------------------------------------- /Assets/LuaFramework/HotUpdate/Prefabs/Activity/ActivityMainPanel.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e39489e2f2f74b75851e191717c3e89 3 | timeCreated: 1487595371 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LuaFramework/HotUpdate/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2996e8e06d4264a198608f5e84349553 3 | folderAsset: yes 4 | timeCreated: 1487595362 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/HotUpdate/Textures/Activity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac92908a7c82b401a9b8fc68021815c5 3 | folderAsset: yes 4 | timeCreated: 1487650233 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/HotUpdate/Textures/Activity/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/LuaFramework/HotUpdate/Textures/Activity/logo.png -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e40fdd79df304c73bb0fc92094113ad 3 | folderAsset: yes 4 | timeCreated: 1487237855 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7deaec985eec8412993e9c17b95529ed 3 | folderAsset: yes 4 | timeCreated: 1487244724 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/cjson.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1119c4407810743de86d01fa652b2374 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/cjson/example1.json: -------------------------------------------------------------------------------- 1 | { 2 | "glossary": { 3 | "title": "example glossary", 4 | "GlossDiv": { 5 | "title": "S", 6 | "GlossList": { 7 | "GlossEntry": { 8 | "ID": "SGML", 9 | "SortAs": "SGML", 10 | "GlossTerm": "Standard Generalized Mark up Language", 11 | "Acronym": "SGML", 12 | "Abbrev": "ISO 8879:1986", 13 | "GlossDef": { 14 | "para": "A meta-markup language, used to create markup languages such as DocBook.", 15 | "GlossSeeAlso": ["GML", "XML"] 16 | }, 17 | "GlossSee": "markup" 18 | } 19 | } 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/cjson/example1.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d6de770751412fd43a5fd1fe331dd761 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/cjson/example2.json: -------------------------------------------------------------------------------- 1 | {"menu": { 2 | "id": "file", 3 | "value": "File", 4 | "popup": { 5 | "menuitem": [ 6 | {"value": "New", "onclick": "CreateNewDoc()"}, 7 | {"value": "Open", "onclick": "OpenDoc()"}, 8 | {"value": "Close", "onclick": "CloseDoc()"} 9 | ] 10 | } 11 | }} 12 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/cjson/example2.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d487a1ee1528714a93defdc9f730dfe 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/cjson/example3.json: -------------------------------------------------------------------------------- 1 | {"widget": { 2 | "debug": "on", 3 | "window": { 4 | "title": "Sample Konfabulator Widget", 5 | "name": "main_window", 6 | "width": 500, 7 | "height": 500 8 | }, 9 | "image": { 10 | "src": "Images/Sun.png", 11 | "name": "sun1", 12 | "hOffset": 250, 13 | "vOffset": 250, 14 | "alignment": "center" 15 | }, 16 | "text": { 17 | "data": "Click Here", 18 | "size": 36, 19 | "style": "bold", 20 | "name": "text1", 21 | "hOffset": 250, 22 | "vOffset": 100, 23 | "alignment": "center", 24 | "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;" 25 | } 26 | }} 27 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/cjson/example3.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca313ab6bd2e8ab41bce696d1ee05a89 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/cjson/example4.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c69a28c5662c2204787fdd352f5595c5 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/cjson/example5.json: -------------------------------------------------------------------------------- 1 | {"menu": { 2 | "header": "SVG Viewer", 3 | "items": [ 4 | {"id": "Open"}, 5 | {"id": "OpenNew", "label": "Open New"}, 6 | null, 7 | {"id": "ZoomIn", "label": "Zoom In"}, 8 | {"id": "ZoomOut", "label": "Zoom Out"}, 9 | {"id": "OriginalView", "label": "Original View"}, 10 | null, 11 | {"id": "Quality"}, 12 | {"id": "Pause"}, 13 | {"id": "Mute"}, 14 | null, 15 | {"id": "Find", "label": "Find..."}, 16 | {"id": "FindAgain", "label": "Find Again"}, 17 | {"id": "Copy"}, 18 | {"id": "CopyAgain", "label": "Copy Again"}, 19 | {"id": "CopySVG", "label": "Copy SVG"}, 20 | {"id": "ViewSVG", "label": "View SVG"}, 21 | {"id": "ViewSource", "label": "View Source"}, 22 | {"id": "SaveAs", "label": "Save As"}, 23 | null, 24 | {"id": "Help"}, 25 | {"id": "About", "label": "About Adobe CVG Viewer..."} 26 | ] 27 | }} 28 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/cjson/example5.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9298ce1cff4eae34087e1cf24cdc89cb 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/cjson/json2lua.lua: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env lua 2 | 3 | -- usage: json2lua.lua [json_file] 4 | -- 5 | -- Eg: 6 | -- echo '[ "testing" ]' | ./json2lua.lua 7 | -- ./json2lua.lua test.json 8 | 9 | local json = require "cjson" 10 | local util = require "cjson.util" 11 | 12 | local json_text = util.file_load(arg[1]) 13 | local t = json.decode(json_text) 14 | print(util.serialise_value(t)) 15 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/cjson/json2lua.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f17254f6d6b970429bbb11bfa82b22c 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/cjson/lua2json.lua: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env lua 2 | 3 | -- usage: lua2json.lua [lua_file] 4 | -- 5 | -- Eg: 6 | -- echo '{ "testing" }' | ./lua2json.lua 7 | -- ./lua2json.lua test.lua 8 | 9 | local json = require "cjson" 10 | local util = require "cjson.util" 11 | 12 | local env = { 13 | json = { null = json.null }, 14 | null = json.null 15 | } 16 | 17 | local t = util.run_script("data = " .. util.file_load(arg[1]), env) 18 | print(json.encode(t.data)) 19 | 20 | -- vi:ai et sw=4 ts=4: 21 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/cjson/lua2json.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2eeb576afff9def43b0081f6d7b2125b 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/cjson/test.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f35728f49db3fec4ea33001068e13c36 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/cjson/util.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ce18eb063e6d6cb43a5db89f763dd13d 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5717154c47289d9449d0cc51a3f78c4b 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/Makefile.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ef1f5e2c7f70334eb6018a524a41161 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/Makefile.mingw.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31646aa6f0dd23c4bbb00c75c25256b8 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/README: -------------------------------------------------------------------------------- 1 | README for Lua BitOp 1.0.2 2 | -------------------------- 3 | 4 | Lua BitOp is a C extension module for Lua 5.1/5.2 which adds 5 | bitwise operations on numbers. 6 | 7 | Homepage: http://bitop.luajit.org/ 8 | 9 | Lua BitOp is Copyright (C) 2008-2012 Mike Pall. 10 | Lua BitOp is free software, released under the MIT license. 11 | 12 | -------------------------- 13 | 14 | Full documentation for Lua BitOp is available in HTML format. 15 | Please point your favourite browser to: 16 | 17 | doc/index.html 18 | 19 | Detailed installation instructions are here: 20 | 21 | doc/install.html 22 | 23 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/README.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2848b492482529244bd0d3cae9d98889 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/bitbench.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a0b5a88625014c48a99057dda7923c5 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/bittest.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 32f558c2109e12a41b2d1f1400e82a66 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/doc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5fc982400798c4408b1bdc7357335f7 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/doc/api.html.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e176ba8ca8fc7645bfbc4d53009a5a9 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/doc/bluequad-print.css.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac6cad9836ef2aa42be0d44fe67cce1d 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/doc/bluequad.css.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51d1ba26d50c47e44b78257d90398dee 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/doc/changes.html.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c0ff59da8ad6f44e99e685a3cb5c627 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/doc/contact.html.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d072c05c6fff47c47914b40192195e70 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/doc/img.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 213a8412fa244f242b54a3383902415e 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/doc/img/contact.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/LuaFramework/Lua/3rd/luabitop/doc/img/contact.png -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/doc/img/contact.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4c87245cd1e43d46841ae1248659b8e 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: -1 29 | mipBias: -1 30 | wrapMode: -1 31 | nPOTScale: 1 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 0 42 | textureType: -1 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/doc/index.html.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5503712ff1277d54b93febdc6208b110 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/doc/install.html.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d6a7ce26750bdb499ecd7b013361538 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/doc/semantics.html.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2613d747ce41e8b4b90e5c45a2478367 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/installpath.lua: -------------------------------------------------------------------------------- 1 | -- Script to find the install path for a C module. Public domain. 2 | 3 | if not arg or not arg[1] then 4 | io.write("Usage: lua installpath.lua modulename\n") 5 | os.exit(1) 6 | end 7 | for p in string.gmatch(package.cpath, "[^;]+") do 8 | if string.sub(p, 1, 1) ~= "." then 9 | local p2 = string.gsub(arg[1], "%.", string.sub(package.config, 1, 1)) 10 | io.write(string.gsub(p, "%?", p2), "\n") 11 | return 12 | end 13 | end 14 | error("no suitable installation path found") 15 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/installpath.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4192b766affe82640a5aee438c3b964a 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/md5test.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 322f8fe07585d624bb3277c8e432a707 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/msvcbuild.bat: -------------------------------------------------------------------------------- 1 | @rem Script to build Lua BitOp with MSVC. 2 | 3 | @rem First change the paths to your Lua installation below. 4 | @rem Then open a "Visual Studio .NET Command Prompt", cd to this directory 5 | @rem and run this script. Afterwards copy the resulting bit.dll to 6 | @rem the directory where lua.exe is installed. 7 | 8 | @if not defined INCLUDE goto :FAIL 9 | 10 | @setlocal 11 | @rem Path to the Lua includes and the library file for the Lua DLL: 12 | @set LUA_INC=-I .. 13 | @set LUA_LIB=..\lua51.lib 14 | 15 | @set MYCOMPILE=cl /nologo /MD /O2 /W3 /c %LUA_INC% 16 | @set MYLINK=link /nologo 17 | @set MYMT=mt /nologo 18 | 19 | %MYCOMPILE% bit.c 20 | %MYLINK% /DLL /export:luaopen_bit /out:bit.dll bit.obj %LUA_LIB% 21 | if exist bit.dll.manifest^ 22 | %MYMT% -manifest bit.dll.manifest -outputresource:bit.dll;2 23 | 24 | del *.obj *.exp *.manifest 25 | 26 | @goto :END 27 | :FAIL 28 | @echo You must open a "Visual Studio .NET Command Prompt" to run this script 29 | :END 30 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/msvcbuild.bat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 01c89dc24e84d1841a654d3273df5698 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/msvctest.bat: -------------------------------------------------------------------------------- 1 | @rem Script to test Lua BitOp. 2 | 3 | @setlocal 4 | @rem Path to the Lua executable: 5 | @set LUA=lua 6 | 7 | @echo off 8 | for %%t in (bittest.lua nsievebits.lua md5test.lua) do ( 9 | echo testing %%t 10 | %LUA% %%t 11 | if errorlevel 1^ 12 | goto :FAIL 13 | ) 14 | echo ****** ALL TESTS OK ****** 15 | goto :END 16 | 17 | :FAIL 18 | echo ****** TEST FAILED ****** 19 | :END 20 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/msvctest.bat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 93f44eeeebf603843aaeca13c9510165 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/nsievebits.lua: -------------------------------------------------------------------------------- 1 | -- This is the (naive) Sieve of Eratosthenes. Public domain. 2 | 3 | local bit = require("bit") 4 | local band, bxor, rshift, rol = bit.band, bit.bxor, bit.rshift, bit.rol 5 | 6 | local function nsieve(p, m) 7 | local count = 0 8 | for i=0,rshift(m, 5) do p[i] = -1 end 9 | for i=2,m do 10 | if band(rshift(p[rshift(i, 5)], i), 1) ~= 0 then 11 | count = count + 1 12 | for j=i+i,m,i do 13 | local jx = rshift(j, 5) 14 | p[jx] = band(p[jx], rol(-2, j)) 15 | end 16 | end 17 | end 18 | return count 19 | end 20 | 21 | if arg and arg[1] then 22 | local N = tonumber(arg[1]) or 1 23 | if N < 2 then N = 2 end 24 | local primes = {} 25 | 26 | for i=0,2 do 27 | local m = (2^(N-i))*10000 28 | io.write(string.format("Primes up to %8d %8d\n", m, nsieve(primes, m))) 29 | end 30 | else 31 | assert(nsieve({}, 10000) == 1229) 32 | end 33 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/luabitop/nsievebits.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27f415faeaf5a954ca75e5b632dda24c 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pbc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c01725dffbd9b40b9b386e3d7c0ea700 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pbc/addressbook.pb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/LuaFramework/Lua/3rd/pbc/addressbook.pb -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pbc/addressbook.pb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b46453c983e6824cabb4f3d5d639ba3 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pbc/addressbook.proto: -------------------------------------------------------------------------------- 1 | // See README.txt for information and build instructions. 2 | 3 | package tutorial; 4 | 5 | option java_package = "com.example.tutorial"; 6 | option java_outer_classname = "AddressBookProtos"; 7 | 8 | message Person { 9 | required string name = 1; 10 | required int32 id = 2; // Unique ID number for this person. 11 | optional string email = 3; 12 | 13 | enum PhoneType { 14 | MOBILE = 0; 15 | HOME = 1; 16 | WORK = 2; 17 | } 18 | 19 | message PhoneNumber { 20 | required string number = 1; 21 | optional PhoneType type = 2 [default = HOME]; 22 | } 23 | 24 | repeated PhoneNumber phone = 4; 25 | repeated int32 test = 5 [packed=true]; 26 | 27 | extensions 10 to max; 28 | } 29 | 30 | message Ext { 31 | extend Person { 32 | optional int32 test = 10; 33 | } 34 | } 35 | 36 | // Our address book file is just one of these. 37 | message AddressBook { 38 | repeated Person person = 1; 39 | } 40 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pbc/addressbook.proto.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31723f391cfd51446b36f385ab093e6b 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pbc/parser.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ba7654d41605834bb8a232818a9ebf8 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pbc/protobuf.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ba29465c7f40ae4aa388cefab41f5e0 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pbc/test.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4c1211c0f06916048bef318d346d5f04 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pbc/test2.lua: -------------------------------------------------------------------------------- 1 | local protobuf = require "protobuf" 2 | 3 | addr = io.open("../../build/addressbook.pb","rb") 4 | buffer = addr:read "*a" 5 | addr:close() 6 | protobuf.register(buffer) 7 | 8 | local person = { 9 | name = "Alice", 10 | id = 123, 11 | phone = { 12 | { number = "123456789" , type = "MOBILE" }, 13 | { number = "87654321" , type = "HOME" }, 14 | } 15 | } 16 | 17 | local buffer = protobuf.encode("tutorial.Person", person) 18 | 19 | local t = protobuf.decode("tutorial.Person", buffer) 20 | 21 | for k,v in pairs(t) do 22 | if type(k) == "string" then 23 | print(k,v) 24 | end 25 | end 26 | 27 | print(t.phone[2].type) 28 | 29 | for k,v in pairs(t.phone[1]) do 30 | print(k,v) 31 | end 32 | 33 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pbc/test2.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9dc1b7c55df9f024689900af8eef3bb0 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pbc/testparser.lua: -------------------------------------------------------------------------------- 1 | protobuf = require "protobuf" 2 | parser = require "parser" 3 | 4 | t = parser.register("addressbook.proto","../../test") 5 | 6 | addressbook = { 7 | name = "Alice", 8 | id = 12345, 9 | phone = { 10 | { number = "1301234567" }, 11 | { number = "87654321", type = "WORK" }, 12 | } 13 | } 14 | 15 | code = protobuf.encode("tutorial.Person", addressbook) 16 | 17 | decode = protobuf.decode("tutorial.Person" , code) 18 | 19 | print(decode.name) 20 | print(decode.id) 21 | for _,v in ipairs(decode.phone) do 22 | print("\t"..v.number, v.type) 23 | end 24 | 25 | buffer = protobuf.pack("tutorial.Person name id", "Alice", 123) 26 | print(protobuf.unpack("tutorial.Person name id", buffer)) -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pbc/testparser.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 24b27e96507cabd4abcf9f24e6a0aaef 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pblua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a26a655c69d98443e898aff76fc87e75 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pblua/login.proto: -------------------------------------------------------------------------------- 1 | 2 | message LoginRequest { 3 | required int32 id = 1; 4 | required string name = 2; 5 | optional string email = 3; 6 | } 7 | 8 | message LoginResponse { 9 | required int32 id = 1; 10 | } -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pblua/login.proto.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5f5ef4fb87587040afd36aa5620d62c 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pblua/login_pb.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9c9ec3a721a0684ba88195d462e2241 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/pblua/person_pb.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8547a09e09800054285c19fb7a4f6c72 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/sproto.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6fe0629549ff98e49b7f9eaffdcc247f 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/sproto/print_r.lua: -------------------------------------------------------------------------------- 1 | local print = print 2 | local tconcat = table.concat 3 | local tinsert = table.insert 4 | local srep = string.rep 5 | local type = type 6 | local pairs = pairs 7 | local tostring = tostring 8 | local next = next 9 | 10 | local function print_r(root) 11 | local cache = { [root] = "." } 12 | local function _dump(t,space,name) 13 | local temp = {} 14 | for k,v in pairs(t) do 15 | local key = tostring(k) 16 | if cache[v] then 17 | tinsert(temp,"+" .. key .. " {" .. cache[v].."}") 18 | elseif type(v) == "table" then 19 | local new_key = name .. "." .. key 20 | cache[v] = new_key 21 | tinsert(temp,"+" .. key .. _dump(v,space .. (next(t,k) and "|" or " " ).. srep(" ",#key),new_key)) 22 | else 23 | tinsert(temp,"+" .. key .. " [" .. tostring(v).."]") 24 | end 25 | end 26 | return tconcat(temp,"\n"..space) 27 | end 28 | print(_dump(root, "","")) 29 | end 30 | 31 | return print_r -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/sproto/print_r.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a0cc54520d1d7eb498493479ceb15d95 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/sproto/sproto.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3bec7f55cc120f241b5cab88bf230ac3 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/sproto/sprotoparser.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5da2b55784b954744b87ba7434bbfc6b 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/sproto/test.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 770c604ef5792ca4fb5fdb25616901ec 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/sproto/testall.lua: -------------------------------------------------------------------------------- 1 | local sproto = require "sproto" 2 | local print_r = require "print_r" 3 | 4 | local sp = sproto.parse [[ 5 | .foobar { 6 | .nest { 7 | a 1 : string 8 | b 3 : boolean 9 | c 5 : integer 10 | } 11 | a 0 : string 12 | b 1 : integer 13 | c 2 : boolean 14 | d 3 : *nest(a) 15 | 16 | e 4 : *string 17 | f 5 : *integer 18 | g 6 : *boolean 19 | h 7 : *foobar 20 | } 21 | ]] 22 | 23 | local obj = { 24 | a = "hello", 25 | b = 1000000, 26 | c = true, 27 | d = { 28 | { 29 | a = "one", 30 | -- skip b 31 | c = -1, 32 | }, 33 | { 34 | a = "two", 35 | b = true, 36 | }, 37 | { 38 | a = "", 39 | b = false, 40 | c = 1, 41 | }, 42 | }, 43 | e = { "ABC", "", "def" }, 44 | f = { -3, -2, -1, 0 , 1, 2}, 45 | g = { true, false, true }, 46 | h = { 47 | { b = 100 }, 48 | {}, 49 | { b = -100, c= false }, 50 | { b = 0, e = { "test" } }, 51 | }, 52 | } 53 | 54 | local code = sp:encode("foobar", obj) 55 | obj = sp:decode("foobar", code) 56 | print_r(obj) 57 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/sproto/testall.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 938292c8d9e6fe546bedc5276526deec 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/3rd/sproto/testrpc.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e5d4ccf4f7badd428fc6aed849504ff 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Common.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 051c51edc487c4a8f988c9a5c4fd5a82 3 | folderAsset: yes 4 | timeCreated: 1487244734 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Common/define.lua: -------------------------------------------------------------------------------- 1 | 2 | CtrlNames = { 3 | Prompt = "PromptCtrl", 4 | Message = "MessageCtrl" 5 | } 6 | 7 | PanelNames = { 8 | "PromptPanel", 9 | "MessagePanel", 10 | } 11 | 12 | --协议类型-- 13 | ProtocalType = { 14 | BINARY = 0, 15 | PB_LUA = 1, 16 | PBC = 2, 17 | SPROTO = 3, 18 | } 19 | --当前使用的协议类型-- 20 | TestProtoType = ProtocalType.BINARY; 21 | 22 | Util = LuaFramework.Util; 23 | AppConst = LuaFramework.AppConst; 24 | LuaHelper = LuaFramework.LuaHelper; 25 | ByteBuffer = LuaFramework.ByteBuffer; 26 | 27 | resMgr = LuaHelper.GetResManager(); 28 | panelMgr = LuaHelper.GetPanelManager(); 29 | soundMgr = LuaHelper.GetSoundManager(); 30 | networkMgr = LuaHelper.GetNetManager(); 31 | 32 | WWW = UnityEngine.WWW; 33 | GameObject = UnityEngine.GameObject; -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Common/define.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 453aacf6267e73748b38e2d4d5df2e75 3 | timeCreated: 1426783365 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Common/functions.lua: -------------------------------------------------------------------------------- 1 | 2 | --输出日志-- 3 | function log(str) 4 | Util.Log(str); 5 | end 6 | 7 | --错误日志-- 8 | function logError(str) 9 | Util.LogError(str); 10 | end 11 | 12 | --警告日志-- 13 | function logWarn(str) 14 | Util.LogWarning(str); 15 | end 16 | 17 | --查找对象-- 18 | function find(str) 19 | return GameObject.Find(str); 20 | end 21 | 22 | function destroy(obj) 23 | GameObject.Destroy(obj); 24 | end 25 | 26 | function newObject(prefab) 27 | return GameObject.Instantiate(prefab); 28 | end 29 | 30 | --创建面板-- 31 | function createPanel(name) 32 | PanelManager:CreatePanel(name); 33 | end 34 | 35 | function child(str) 36 | return transform:FindChild(str); 37 | end 38 | 39 | function subGet(childNode, typeName) 40 | return child(childNode):GetComponent(typeName); 41 | end 42 | 43 | function findPanel(str) 44 | local obj = find(str); 45 | if obj == nil then 46 | error(str.." is null"); 47 | return nil; 48 | end 49 | return obj:GetComponent("BaseLua"); 50 | end -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Common/functions.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 945af47fecee10044989b172212a1256 3 | timeCreated: 1426783366 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Common/protocal.lua: -------------------------------------------------------------------------------- 1 | --Buildin Table 2 | Protocal = { 3 | Connect = '101'; --连接服务器 4 | Exception = '102'; --异常掉线 5 | Disconnect = '103'; --正常断线 6 | Message = '104'; --接收消息 7 | } 8 | 9 | 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Common/protocal.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41c0bebeedd51e84fb0130409341ef47 3 | timeCreated: 1426783365 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Controller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a7bfbd838819640dabfa0bc9b88300c3 3 | folderAsset: yes 4 | timeCreated: 1487244747 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Controller/MessageCtrl.lua: -------------------------------------------------------------------------------- 1 | 2 | MessageCtrl = {}; 3 | local this = MessageCtrl; 4 | 5 | local message; 6 | local transform; 7 | local gameObject; 8 | 9 | --构建函数-- 10 | function MessageCtrl.New() 11 | logWarn("MessageCtrl.New--->>"); 12 | return this; 13 | end 14 | 15 | function MessageCtrl.Awake() 16 | logWarn("MessageCtrl.Awake--->>"); 17 | panelMgr:CreatePanel('Message', this.OnCreate); 18 | end 19 | 20 | --启动事件-- 21 | function MessageCtrl.OnCreate(obj) 22 | gameObject = obj; 23 | 24 | message = gameObject:GetComponent('LuaBehaviour'); 25 | message:AddClick(MessagePanel.btnClose, this.OnClick); 26 | 27 | logWarn("Start lua--->>"..gameObject.name); 28 | end 29 | 30 | --单击事件-- 31 | function MessageCtrl.OnClick(go) 32 | destroy(gameObject); 33 | end 34 | 35 | --关闭事件-- 36 | function MessageCtrl.Close() 37 | panelMgr:ClosePanel(CtrlNames.Message); 38 | end -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Controller/MessageCtrl.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b073d8d7f9880c4482d9c9d40b6b558 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Controller/PromptCtrl.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 709a4f9ec40526b459abc2e25192f509 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/HotFix.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c4453540266f14822acde0173532c439 3 | folderAsset: yes 4 | timeCreated: 1487596742 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/HotFix/hot-fix-code-test.lua: -------------------------------------------------------------------------------- 1 | xlua.hotfix(CS.HotFixedCodeTest, 'Awake', function() 2 | print('this is from lua') 3 | end) -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/HotFix/hot-fix-code-test.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 199f5f471286a4c62b931af9e724fff6 3 | timeCreated: 1487598838 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Logic.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76602e55dc1204fb6b95e4f3af8f7971 3 | folderAsset: yes 4 | timeCreated: 1487244873 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Logic/CtrlManager.lua: -------------------------------------------------------------------------------- 1 | require "Common/define" 2 | require "Controller/PromptCtrl" 3 | require "Controller/MessageCtrl" 4 | 5 | CtrlManager = {}; 6 | local this = CtrlManager; 7 | local ctrlList = {}; --控制器列表-- 8 | 9 | function CtrlManager.Init() 10 | logWarn("CtrlManager.Init----->>>"); 11 | ctrlList[CtrlNames.Prompt] = PromptCtrl.New(); 12 | ctrlList[CtrlNames.Message] = MessageCtrl.New(); 13 | return this; 14 | end 15 | 16 | --添加控制器-- 17 | function CtrlManager.AddCtrl(ctrlName, ctrlObj) 18 | ctrlList[ctrlName] = ctrlObj; 19 | end 20 | 21 | --获取控制器-- 22 | function CtrlManager.GetCtrl(ctrlName) 23 | return ctrlList[ctrlName]; 24 | end 25 | 26 | --移除控制器-- 27 | function CtrlManager.RemoveCtrl(ctrlName) 28 | ctrlList[ctrlName] = nil; 29 | end 30 | 31 | --关闭控制器-- 32 | function CtrlManager.Close() 33 | logWarn('CtrlManager.Close---->>>'); 34 | end -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Logic/CtrlManager.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 105072a955763134d8fe07ccaca1dede 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Logic/Game.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a211e85690e156749ad8816bba582708 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Logic/LuaClass.lua: -------------------------------------------------------------------------------- 1 | --Author : Administrator 2 | --Date : 2014/11/25 3 | 4 | --声明,这里声明了类名还有属性,并且给出了属性的初始值。 5 | LuaClass = {x = 0, y = 0} 6 | 7 | --这句是重定义元表的索引,就是说有了这句,这个才是一个类。 8 | LuaClass.__index = LuaClass 9 | 10 | --构造体,构造体的名字是随便起的,习惯性改为New() 11 | function LuaClass:New(x, y) 12 | local self = {}; --初始化self,如果没有这句,那么类所建立的对象改变,其他对象都会改变 13 | setmetatable(self, LuaClass); --将self的元表设定为Class 14 | self.x = x; 15 | self.y = y; 16 | return self; --返回自身 17 | end 18 | 19 | --测试打印方法-- 20 | function LuaClass:test() 21 | logWarn("x:>" .. self.x .. " y:>" .. self.y); 22 | end 23 | 24 | --endregion 25 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Logic/LuaClass.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: efb0d6648bfd84c36b2c88e122dc06c8 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Logic/Network.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7ede560670584545bf0b6620250fd0a 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Main.lua: -------------------------------------------------------------------------------- 1 | --主入口函数。从这里开始lua逻辑 2 | function Main() 3 | 4 | end 5 | 6 | --场景切换通知 7 | function OnLevelWasLoaded(level) 8 | collectgarbage("collect") 9 | Time.timeSinceLevelLoad = 0 10 | end -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/Main.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4cb7e87b8c2f24d23a04222b7652f04a 3 | timeCreated: 1487244873 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/View.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dee21e400aae447d0aaa35c3e3c9943b 3 | folderAsset: yes 4 | timeCreated: 1487244757 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/View/MessagePanel.lua: -------------------------------------------------------------------------------- 1 | local transform; 2 | local gameObject; 3 | 4 | MessagePanel = {}; 5 | local this = MessagePanel; 6 | 7 | --启动事件-- 8 | function MessagePanel.Awake(obj) 9 | gameObject = obj; 10 | transform = obj.transform; 11 | 12 | this.InitPanel(); 13 | logWarn("Awake lua--->>"..gameObject.name); 14 | end 15 | 16 | --初始化面板-- 17 | function MessagePanel.InitPanel() 18 | this.btnClose = transform:FindChild("Button").gameObject; 19 | end 20 | 21 | --单击事件-- 22 | function MessagePanel.OnDestroy() 23 | logWarn("OnDestroy---->>>"); 24 | end 25 | 26 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/View/MessagePanel.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 50610ae62f65c49e8baea87c791eb3a8 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/View/PromptPanel.lua: -------------------------------------------------------------------------------- 1 | local transform; 2 | local gameObject; 3 | 4 | PromptPanel = {}; 5 | local this = PromptPanel; 6 | 7 | --启动事件-- 8 | function PromptPanel.Awake(obj) 9 | gameObject = obj; 10 | transform = obj.transform; 11 | 12 | this.InitPanel(); 13 | logWarn("Awake lua--->>"..gameObject.name); 14 | end 15 | 16 | --初始化面板-- 17 | function PromptPanel.InitPanel() 18 | this.btnOpen = transform:FindChild("Open").gameObject; 19 | this.gridParent = transform:FindChild('ScrollView/Grid'); 20 | end 21 | 22 | --单击事件-- 23 | function PromptPanel.OnDestroy() 24 | logWarn("OnDestroy---->>>"); 25 | end -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/View/PromptPanel.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 047a4b7afac7a4ef8876268bda036a9d 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/eventlib.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 769fd9f861f7b46a98f1eacbe14436d6 3 | timeCreated: 1487244873 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/events.lua: -------------------------------------------------------------------------------- 1 | --[[ 2 | Auth:Chiuan 3 | like Unity Brocast Event System in lua. 4 | ]] 5 | 6 | local EventLib = require "eventlib" 7 | 8 | local Event = {} 9 | local events = {} 10 | 11 | function Event.AddListener(event,handler) 12 | if not event or type(event) ~= "string" then 13 | error("event parameter in addlistener function has to be string, " .. type(event) .. " not right.") 14 | end 15 | if not handler or type(handler) ~= "function" then 16 | error("handler parameter in addlistener function has to be function, " .. type(handler) .. " not right") 17 | end 18 | 19 | if not events[event] then 20 | --create the Event with name 21 | events[event] = EventLib:new(event) 22 | end 23 | 24 | --conn this handler 25 | events[event]:connect(handler) 26 | end 27 | 28 | function Event.Brocast(event,...) 29 | if not events[event] then 30 | error("brocast " .. event .. " has no event.") 31 | else 32 | events[event]:fire(...) 33 | end 34 | end 35 | 36 | function Event.RemoveListener(event,handler) 37 | if not events[event] then 38 | error("remove " .. event .. " has no event.") 39 | else 40 | events[event]:disconnect(handler) 41 | end 42 | end 43 | 44 | return Event -------------------------------------------------------------------------------- /Assets/LuaFramework/Lua/events.lua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e59379c3eb5c41c5a32ec68944acc91 3 | timeCreated: 1487244873 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 45d1d539e8fb64d41bc45e669f14c1a1 3 | folderAsset: yes 4 | timeCreated: 1487237826 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Scenes/main.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/LuaFramework/Scenes/main.unity -------------------------------------------------------------------------------- /Assets/LuaFramework/Scenes/main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d704cb9372e674a0aabbd7dfead720cc 3 | timeCreated: 1487237952 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16b622c253b9c48e6b48fb68332da798 3 | folderAsset: yes 4 | timeCreated: 1487237806 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Common.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c391815c7abcf401895985c69d264692 3 | folderAsset: yes 4 | timeCreated: 1487240353 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Common/LuaBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af0761637b113450a9a65d2881490045 3 | timeCreated: 1487240340 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/ConstDefine.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 767252f71e4e547edaa59432a7224c3c 3 | folderAsset: yes 4 | timeCreated: 1487240463 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/ConstDefine/AppConst.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a3c4a9d7399545ce923b029380e9def 3 | timeCreated: 1487240469 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/ConstDefine/ManagerName.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | namespace LuaFramework { 5 | public class ManagerName { 6 | public const string Lua = "LuaManager"; 7 | public const string Game = "GameManager"; 8 | public const string Timer = "TimeManager"; 9 | public const string Sound = "SoundManager"; 10 | public const string Panel = "PanelManager"; 11 | public const string Network = "NetworkManager"; 12 | public const string Resource = "ResourceManager"; 13 | public const string Thread = "ThreadManager"; 14 | public const string ObjectPool = "ObjectPoolManager"; 15 | } 16 | } -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/ConstDefine/ManagerName.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 38dd2861786d7400295eeeb9b5c2b647 3 | timeCreated: 1487240503 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/ConstDefine/NotiConst.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class NotiConst 5 | { 6 | /// 7 | /// Controller层消息通知 8 | /// 9 | public const string START_UP = "StartUp"; //启动框架 10 | public const string DISPATCH_MESSAGE = "DispatchMessage"; //派发信息 11 | 12 | /// 13 | /// View层消息通知 14 | /// 15 | public const string UPDATE_MESSAGE = "UpdateMessage"; //更新消息 16 | public const string UPDATE_EXTRACT = "UpdateExtract"; //更新解包 17 | public const string UPDATE_DOWNLOAD = "UpdateDownload"; //更新下载 18 | public const string UPDATE_PROGRESS = "UpdateProgress"; //更新进度 19 | } 20 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/ConstDefine/NotiConst.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 361be638a805f4b03b9c3b364ecd5742 3 | timeCreated: 1487240529 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Controller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d6a64da3d0a5b4e468b4231407c0a6fa 3 | folderAsset: yes 4 | timeCreated: 1487240567 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Controller/Command.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: adb18be5f795940299a011fb2d60baf7 3 | folderAsset: yes 4 | timeCreated: 1487240582 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Controller/Command/SocketCommand.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using LuaFramework; 5 | 6 | public class SocketCommand : ControllerCommand { 7 | 8 | public override void Execute(IMessage message) { 9 | object data = message.Body; 10 | if (data == null) return; 11 | KeyValuePair buffer = (KeyValuePair)data; 12 | switch (buffer.Key) { 13 | default: Util.CallMethod("Network", "OnSocket", buffer.Key, buffer.Value); break; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Controller/Command/SocketCommand.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b0b6aeb28afe41f2a44499c43888086 3 | timeCreated: 1487240610 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Controller/Command/StartUpCommand.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1780e213f221741748d8a617bd94b011 3 | timeCreated: 1487240644 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64253d1b0df4a4e51bed92dc60e386bc 3 | folderAsset: yes 4 | timeCreated: 1487238150 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/AppFacade.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | 6 | public class AppFacade : Facade 7 | { 8 | private static AppFacade _instance; 9 | 10 | public AppFacade() : base() 11 | { 12 | } 13 | 14 | public static AppFacade Instance 15 | { 16 | get{ 17 | if (_instance == null) { 18 | _instance = new AppFacade(); 19 | } 20 | return _instance; 21 | } 22 | } 23 | 24 | override protected void InitFramework() 25 | { 26 | base.InitFramework(); 27 | RegisterCommand(NotiConst.START_UP, typeof(StartUpCommand)); 28 | } 29 | 30 | /// 31 | /// 启动框架 32 | /// 33 | public void StartUp() { 34 | SendMessageCommand(NotiConst.START_UP); 35 | RemoveMultiCommand(NotiConst.START_UP); 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/AppFacade.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2e90c28c31bd49679f271a1f1d40f0e 3 | timeCreated: 1487240697 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Core.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 717a31abc6b6d4713aa992247b3630d6 3 | folderAsset: yes 4 | timeCreated: 1487238164 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Core/Base.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee4730c431ef9415fba6a542b049493a 3 | timeCreated: 1487239451 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Core/Controller.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7a89dab6b66e4b558937a9153ef0ad8 3 | timeCreated: 1487239363 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Core/Facade.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 71578c60044ff4de1ac9034e670a0b8c 3 | timeCreated: 1487239411 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Core/Manager.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using LuaFramework; 4 | 5 | public class Manager : Base, IManager { 6 | 7 | // Use this for initialization 8 | void Start () { 9 | 10 | } 11 | 12 | // Update is called once per frame 13 | void Update () { 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Core/Manager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 983d8ac42b67843dfbcf299b5b9b0e27 3 | timeCreated: 1487238638 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Core/Message.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 52876d06ab683445a823f99f778614d4 3 | timeCreated: 1487238599 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Core/View.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using LuaFramework; 6 | 7 | public class View : Base, IView { 8 | public virtual void OnMessage(IMessage message) { 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Core/View.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96df6713bb3cd4339b96b9ac4830d50e 3 | timeCreated: 1487238546 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Interface.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b03dac91577fe4fe6a1c37e2e4f766a3 3 | folderAsset: yes 4 | timeCreated: 1487238091 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Interface/ICommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | public interface ICommand { 4 | void Execute(IMessage message); 5 | } -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Interface/ICommand.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5dd7909764484c36b2b3b4665353887 3 | timeCreated: 1487238221 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Interface/IController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | public interface IController 5 | { 6 | void RegisterCommand(string messageName, Type commandType); 7 | void RegisterViewCommand(IView view, string[] commandNames); 8 | 9 | void ExecuteCommand(IMessage message); 10 | 11 | void RemoveCommand(string messageName); 12 | void RemoveViewCommand(IView view, string[] commandNames); 13 | 14 | bool HasCommand(string messageName); 15 | } -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Interface/IController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d9b6ee418b054bd8991ae9246d44002 3 | timeCreated: 1487238260 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Interface/IManager.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public interface IManager { 5 | } 6 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Interface/IManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 43ff0f5a9e0164ceda3cfeec75d088fc 3 | timeCreated: 1487238291 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Interface/IMessage.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | public interface IMessage 4 | { 5 | string Name { get; } 6 | 7 | object Body { get; set; } 8 | 9 | string Type { get; set; } 10 | 11 | string ToString(); 12 | } -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Interface/IMessage.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f45466bfdfea448eeba4807bd93728e9 3 | timeCreated: 1487238314 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Interface/IView.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | public interface IView { 4 | void OnMessage(IMessage message); 5 | } 6 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Framework/Interface/IView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 494e22299d4f64b00ac2bf51cd858e7b 3 | timeCreated: 1487238370 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Main.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | namespace LuaFramework { 5 | 6 | /// 7 | /// 8 | public class Main : MonoBehaviour { 9 | 10 | void Start() { 11 | AppFacade.Instance.StartUp(); //启动游戏 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Main.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4faf7bcd0d5484d80b5210b7c84bf5f6 3 | timeCreated: 1487241490 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Manager.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11565a9b2b9194a0a9b88a6d6a0ae16a 3 | folderAsset: yes 4 | timeCreated: 1487240754 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Manager/GameManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa4a1143865244749a3648cef05f6f75 3 | timeCreated: 1487240821 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Manager/Interface.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac940067621484f2baa22f791720d6ce 3 | folderAsset: yes 4 | timeCreated: 1487240764 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Manager/Interface/ITimerBehaviour.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | 4 | namespace LuaFramework { 5 | public interface ITimerBehaviour { 6 | void TimerUpdate(); 7 | } 8 | } -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Manager/Interface/ITimerBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 617c629a46d154e9da682acb956a9d58 3 | timeCreated: 1487240779 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Manager/LuaManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9cd8e1b614d094de685c32856e4e5c8e 3 | timeCreated: 1487240853 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Manager/NetworkManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f209f94dc2fc14d689f4e2e2352f7404 3 | timeCreated: 1487240884 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Manager/ObjectPoolManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fb752c586d76a4766b2bd6e121f57526 3 | timeCreated: 1487240919 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Manager/PanelManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 305ec555fd03149a985bc81f7b075a74 3 | timeCreated: 1487240953 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Manager/ResourceManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5f6785b494e24b83982cfe40b052300 3 | timeCreated: 1487240986 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Manager/SoundManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c06e3f0eddc2a48e88d1cbde1e987082 3 | timeCreated: 1487241016 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Manager/ThreadManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f98d91b5787b2416bac1e47a664808e2 3 | timeCreated: 1487241041 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Manager/TimerManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec753e98562264b7e9e797be3d504b4d 3 | timeCreated: 1487241068 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Network.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fbe65f8c9ba8d4436a20e9c9056cce5c 3 | folderAsset: yes 4 | timeCreated: 1487241127 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Network/ByteBuffer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12244e390226743d1bf2481bfbcaaed5 3 | timeCreated: 1487241135 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Network/Converter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67d011b4430c54e9a854ced5d32ebb2b 3 | timeCreated: 1487241174 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Network/Protocal.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace LuaFramework { 3 | public class Protocal { 4 | ///BUILD TABLE 5 | public const int Connect = 101; //连接服务器 6 | public const int Exception = 102; //异常掉线 7 | public const int Disconnect = 103; //正常断线 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Network/Protocal.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d3b2e95e8d61b467aa18ef75900bc140 3 | timeCreated: 1487241211 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Network/SocketClient.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee2162aedbc844947a3166c45911f728 3 | timeCreated: 1487241234 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/ObjectPool.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46af1460678c34c38b68b2e5335aee00 3 | folderAsset: yes 4 | timeCreated: 1487241274 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/ObjectPool/GameObjectPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6dac7b50c218044a5ae457650a74eab6 3 | timeCreated: 1487241318 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/ObjectPool/ObjectPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2bf26f3c53b6a45e89019d36b1e47585 3 | timeCreated: 1487241346 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Utility.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b360fbbf52dba4e67a3c8e198ff7de3b 3 | folderAsset: yes 4 | timeCreated: 1487241289 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Utility/LuaFileUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e98fa0b13015e454e8d913c82dfd8cac 3 | timeCreated: 1487655415 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Utility/LuaHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82ce91add100f45b3b93d210e260af6c 3 | timeCreated: 1487241390 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/Utility/Util.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 10730330ca74f4802a69871d1a8c861a 3 | timeCreated: 1487241415 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/View.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 71c2b15080c6041d7baa46c045ed2cd2 3 | folderAsset: yes 4 | timeCreated: 1487241295 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LuaFramework/Src/View/AppView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99d3fc94135ae49dcb246c0a0b9f7346 3 | timeCreated: 1487241450 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a16bb6756d0496e42a92390340cb94f5 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/Plugins/Android.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0004c0a5ad641d4468ebb65779ee48b2 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/libs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9cd62bafd75e7604daf2b561b80d136d 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/libs/armeabi-v7a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8d0cd0f5702f0144af2498bce3ee3e9 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/libs/armeabi-v7a/libxlua.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/Plugins/Android/libs/armeabi-v7a/libxlua.so -------------------------------------------------------------------------------- /Assets/Plugins/Android/libs/armeabi-v7a/libxlua.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e1b2e17cce240d4c8ff5457ac996e0d 3 | timeCreated: 1451443249 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Android: 12 | enabled: 1 13 | settings: 14 | CPU: ARMv7 15 | Any: 16 | enabled: 0 17 | settings: {} 18 | Editor: 19 | enabled: 0 20 | settings: 21 | DefaultValueInitialized: true 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/libs/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 079ea0ed741ff194a80cce029630b5ac 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/libs/x86/libxlua.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/Plugins/Android/libs/x86/libxlua.so -------------------------------------------------------------------------------- /Assets/Plugins/Android/libs/x86/libxlua.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 038a89637b659e346a7a712ce0c9271b 3 | timeCreated: 1451443249 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Android: 12 | enabled: 1 13 | settings: 14 | CPU: x86 15 | Any: 16 | enabled: 0 17 | settings: {} 18 | Editor: 19 | enabled: 0 20 | settings: 21 | DefaultValueInitialized: true 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Assets/Plugins/iOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a4ab2e5e00054b03a7bf96d03e5b4e1 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/Plugins/iOS/libxlua.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/Plugins/iOS/libxlua.a -------------------------------------------------------------------------------- /Assets/Plugins/iOS/libxlua.a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d65468f3356ca741b3fbebea91dfb6c 3 | timeCreated: 1451443249 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 1 13 | settings: {} 14 | userData: 15 | assetBundleName: 16 | assetBundleVariant: 17 | -------------------------------------------------------------------------------- /Assets/Plugins/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b0b0c4ffe67d2f4292c5211de91e55f 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/Plugins/x86/xlua.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/Plugins/x86/xlua.dll -------------------------------------------------------------------------------- /Assets/Plugins/x86_64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8dba1dfb80e5b7d40bd214fc4ed2ed6b 3 | folderAsset: yes 4 | timeCreated: 1451020766 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/x86_64/xlua.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/Plugins/x86_64/xlua.dll -------------------------------------------------------------------------------- /Assets/Plugins/xlua.bundle.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e6a34038df77e48438826b6ff94aa69e 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/Plugins/xlua.bundle/Contents.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e4b7549f5e4a4e71806e3ec8e428b15 3 | folderAsset: yes 4 | timeCreated: 1457422691 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/xlua.bundle/Contents/Info.plist.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac30af4fb2add4d41a9f50fe4f8292a3 3 | timeCreated: 1457422749 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/xlua.bundle/Contents/MacOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c9d8e68fa0fd1465294f1255f6ed8563 3 | folderAsset: yes 4 | timeCreated: 1457422691 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/xlua.bundle/Contents/MacOS/xlua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/Plugins/xlua.bundle/Contents/MacOS/xlua -------------------------------------------------------------------------------- /Assets/Plugins/xlua.bundle/Contents/MacOS/xlua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f3b1cda03ac84924b1ee0595fc019f5 3 | timeCreated: 1457422749 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XLua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d2d240998b7a9a44b7402136c946623 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/XLua/CHANGELOG.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/CHANGELOG.txt -------------------------------------------------------------------------------- /Assets/XLua/CHANGELOG.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be3fe4ee249c5274693e7b6f8053e861 3 | timeCreated: 1470364015 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Doc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67edfc4b640373846b14362bf8769576 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/XLua/Doc/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee1eae11fbe87b04193ab2c3d15ba2b3 3 | folderAsset: yes 4 | timeCreated: 1481715983 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/XLua/Doc/Materials/logo.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Doc/Materials/logo.mat -------------------------------------------------------------------------------- /Assets/XLua/Doc/Materials/logo.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 953e2ba39b9a2d54388919b75877efb7 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/XLua/Doc/XLua_API.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Doc/XLua_API.doc -------------------------------------------------------------------------------- /Assets/XLua/Doc/XLua_API.doc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f05e875da3e1b3844b2360d177d617c9 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/XLua/Doc/XLua增加删除第三方lua库.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Doc/XLua增加删除第三方lua库.doc -------------------------------------------------------------------------------- /Assets/XLua/Doc/XLua增加删除第三方lua库.doc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40e0633beaaf4dd49aca86e58539a814 3 | timeCreated: 1469709930 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Doc/XLua复杂值类型(struct)gc优化指南.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Doc/XLua复杂值类型(struct)gc优化指南.doc -------------------------------------------------------------------------------- /Assets/XLua/Doc/XLua复杂值类型(struct)gc优化指南.doc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11d97e567c78f3147b86070c103f3d2d 3 | timeCreated: 1472455442 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Doc/XLua性能分析工具.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Doc/XLua性能分析工具.doc -------------------------------------------------------------------------------- /Assets/XLua/Doc/XLua性能分析工具.doc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e83c211c4c43834b9c8027b7480ab5f 3 | timeCreated: 1462265117 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Doc/XLua教程.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Doc/XLua教程.doc -------------------------------------------------------------------------------- /Assets/XLua/Doc/XLua教程.doc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9678cc58c9b40e147b514f7f5122ee20 3 | timeCreated: 1456291064 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Doc/XLua的配置.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Doc/XLua的配置.doc -------------------------------------------------------------------------------- /Assets/XLua/Doc/XLua的配置.doc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57c6cf634c35eb146b95206d498cbf99 3 | timeCreated: 1480488641 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Doc/custom_generate.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6436d38981b6f5a4d8a2255ea3145ed1 3 | timeCreated: 1486519283 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Doc/faq.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13645b7c8597d7840adaff65764ad40f 3 | timeCreated: 1481765808 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Doc/features.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6dcae34981e53564ea1ad644fe0b2f7c 3 | timeCreated: 1481768591 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Doc/hotfix.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a96cb06c040f28c4aab024ca7634360b 3 | timeCreated: 1482837382 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Doc/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Doc/logo.png -------------------------------------------------------------------------------- /Assets/XLua/Doc/xLua.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Doc/xLua.png -------------------------------------------------------------------------------- /Assets/XLua/Examples.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1feab61bf70ce6a4d951cbf76ea6c32f 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/01_Helloworld.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8fbb1a01533805479599cd3e19a5e4c 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/01_Helloworld/Helloworld.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Tencent is pleased to support the open source community by making xLua available. 3 | * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. 4 | * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at 5 | * http://opensource.org/licenses/MIT 6 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 7 | */ 8 | 9 | using UnityEngine; 10 | using XLua; 11 | 12 | public class Helloworld : MonoBehaviour { 13 | // Use this for initialization 14 | void Start () { 15 | LuaEnv luaenv = new LuaEnv(); 16 | luaenv.DoString("CS.UnityEngine.Debug.Log('hello world')"); 17 | luaenv.Dispose(); 18 | } 19 | 20 | // Update is called once per frame 21 | void Update () { 22 | 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/01_Helloworld/Helloworld.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 480b23bd4e378f2499f8b31ae84b1c05 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/01_Helloworld/Helloworld.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Examples/01_Helloworld/Helloworld.unity -------------------------------------------------------------------------------- /Assets/XLua/Examples/01_Helloworld/Helloworld.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 58e2eda480b0c6e41a793391a9fb9a72 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/02_U3DScripting.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: afd3fcbd8a9d48945b874adff2c0aa6d 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/02_U3DScripting/LuaBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9173d38911503c4a9a371b0760bdd15 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/02_U3DScripting/LuaTestScript.lua.txt: -------------------------------------------------------------------------------- 1 | -- Tencent is pleased to support the open source community by making xLua available. 2 | -- Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. 3 | -- Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at 4 | -- http://opensource.org/licenses/MIT 5 | -- Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 6 | 7 | local speed = 10 8 | 9 | function start() 10 | print("lua start...") 11 | end 12 | 13 | function update() 14 | local r = CS.UnityEngine.Vector3.up * CS.UnityEngine.Time.deltaTime * speed 15 | self.transform:Rotate(r) 16 | end 17 | 18 | function ondestroy() 19 | print("lua destroy") 20 | end 21 | 22 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/02_U3DScripting/LuaTestScript.lua.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7cfed86298c2da543b693ffd8436367a 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/02_U3DScripting/U3DScripting.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Examples/02_U3DScripting/U3DScripting.unity -------------------------------------------------------------------------------- /Assets/XLua/Examples/02_U3DScripting/U3DScripting.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d9b7cd8ac592564796c9c24b3636677 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/03_UIEvent.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4adea5640e39ca43a54b81b93ea2f32 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/03_UIEvent/ButtonInteraction.lua.txt: -------------------------------------------------------------------------------- 1 | -- Tencent is pleased to support the open source community by making xLua available. 2 | -- Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. 3 | -- Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at 4 | -- http://opensource.org/licenses/MIT 5 | -- Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 6 | 7 | function start() 8 | print("lua start...") 9 | 10 | self:GetComponent("Button").onClick:AddListener(function() 11 | print("clicked, you input is '" ..input:GetComponent("InputField").text .."'") 12 | end) 13 | end 14 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/03_UIEvent/ButtonInteraction.lua.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b998ff8754d165438f1f34adb4f3d7e 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/03_UIEvent/UI.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Examples/03_UIEvent/UI.unity -------------------------------------------------------------------------------- /Assets/XLua/Examples/03_UIEvent/UI.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f835eeddd75e9f74d95c957aa7ca44b2 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/04_LuaObjectOrented.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d8101efdb236b04b9b7cfa592bee593 3 | folderAsset: yes 4 | timeCreated: 1480404151 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/04_LuaObjectOrented/InvokeLua.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e190b5ef59b7a84dbb262cfd11f9107 3 | timeCreated: 1478591887 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/04_LuaObjectOrented/InvokeLua.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Examples/04_LuaObjectOrented/InvokeLua.unity -------------------------------------------------------------------------------- /Assets/XLua/Examples/04_LuaObjectOrented/InvokeLua.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 554d570d8b369434ba8a099ebafee542 3 | timeCreated: 1478591886 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/05_NoGc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e2eb0ecfd63eea4f820ff8575288639 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/05_NoGc/NoGc.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 577a670e2d7ad5e4691e30c9249edf3e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/05_NoGc/NoGc.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Examples/05_NoGc/NoGc.unity -------------------------------------------------------------------------------- /Assets/XLua/Examples/05_NoGc/NoGc.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa308fa7f40ec0348addeff1475bb164 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/06_Coroutine.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a4f6da9af53d384d8228950f82ae562 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/06_Coroutine/Coroutine.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using XLua; 3 | using System.Collections.Generic; 4 | using System.Collections; 5 | using System; 6 | 7 | public class Coroutine : MonoBehaviour { 8 | LuaEnv luaenv = null; 9 | // Use this for initialization 10 | void Start() 11 | { 12 | luaenv = new LuaEnv(); 13 | luaenv.DoString("require 'coruntine_test'"); 14 | } 15 | 16 | // Update is called once per frame 17 | void Update() 18 | { 19 | if (luaenv != null) 20 | { 21 | luaenv.Tick(); 22 | } 23 | } 24 | 25 | void OnDestroy() 26 | { 27 | luaenv.Dispose(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/06_Coroutine/Coroutine.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07b1a6730b144ab479c11ab079e2eb68 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/06_Coroutine/Coroutine.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Examples/06_Coroutine/Coroutine.unity -------------------------------------------------------------------------------- /Assets/XLua/Examples/06_Coroutine/Coroutine.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15727d4119afc7a47b7d3284ca6990db 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/06_Coroutine/Coroutine_Runner.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using XLua; 3 | using System.Collections.Generic; 4 | using System.Collections; 5 | using System; 6 | 7 | [LuaCallCSharp] 8 | public class Coroutine_Runner : MonoBehaviour 9 | { 10 | public void YieldAndCallback(object to_yield, Action callback) 11 | { 12 | StartCoroutine(CoBody(to_yield, callback)); 13 | } 14 | 15 | private IEnumerator CoBody(object to_yield, Action callback) 16 | { 17 | if (to_yield is IEnumerator) 18 | yield return StartCoroutine((IEnumerator)to_yield); 19 | else 20 | yield return to_yield; 21 | callback(); 22 | } 23 | } 24 | 25 | public static class CoroutineConfig 26 | { 27 | [LuaCallCSharp] 28 | public static List LuaCallCSharp 29 | { 30 | get 31 | { 32 | return new List() 33 | { 34 | typeof(WaitForSeconds), 35 | typeof(WWW) 36 | }; 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/06_Coroutine/Coroutine_Runner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9abe5e754f1c63247a254d53e34d1e40 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/06_Coroutine/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 08227e7d0eccf384aab65fb19928d3ef 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/06_Coroutine/Resources/coruntine_test.lua.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13b04a36211388b45849c1fb7dd7b956 3 | timeCreated: 1463554448 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/06_Coroutine/Resources/cs_coroutine.lua.txt: -------------------------------------------------------------------------------- 1 | -- Tencent is pleased to support the open source community by making xLua available. 2 | -- Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. 3 | -- Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at 4 | -- http://opensource.org/licenses/MIT 5 | -- Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 6 | 7 | local util = require 'xlua.util' 8 | 9 | local gameobject = CS.UnityEngine.GameObject('Coroutine_Runner') 10 | local cs_coroutine_runner = gameobject:AddComponent(typeof(CS.Coroutine_Runner)) 11 | 12 | local function async_yield_return(to_yield, cb) 13 | cs_coroutine_runner:YieldAndCallback(to_yield, cb) 14 | end 15 | 16 | return { 17 | yield_return = util.async_to_sync(async_yield_return) 18 | } 19 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/06_Coroutine/Resources/cs_coroutine.lua.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f3d9471c4ae0aa47957ff35c0df972e 3 | timeCreated: 1463555211 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/07_AsyncTest.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c07f66d94f59e944b4b4e50357847c2 3 | folderAsset: yes 4 | timeCreated: 1480404151 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/07_AsyncTest/AsyncTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5b2cbe03aa30c446ab56ae6f520277b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/07_AsyncTest/AsyncTest.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Examples/07_AsyncTest/AsyncTest.unity -------------------------------------------------------------------------------- /Assets/XLua/Examples/07_AsyncTest/AsyncTest.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 50ee330b40bfcc54cbdfb1c7c79a02d9 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/07_AsyncTest/MessageBox.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20d92fd634185584eb982e0ad93a13a9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/07_AsyncTest/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bf7e4682a398f4243b4b200c3a8a1e35 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/07_AsyncTest/Resources/AlertBox.prefab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Examples/07_AsyncTest/Resources/AlertBox.prefab -------------------------------------------------------------------------------- /Assets/XLua/Examples/07_AsyncTest/Resources/AlertBox.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dbfc57f47cf3853418df75ee656fdf90 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/07_AsyncTest/Resources/ConfirmBox.prefab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/Assets/XLua/Examples/07_AsyncTest/Resources/ConfirmBox.prefab -------------------------------------------------------------------------------- /Assets/XLua/Examples/07_AsyncTest/Resources/ConfirmBox.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 18c683fc899b71146b50b40d8d5fe57a 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/07_AsyncTest/Resources/async_test.lua.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40d0922483b73c8408f163088c9adc26 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/07_AsyncTest/Resources/message_box.lua.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8cdad601850bd814c9a22efaff55928f 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/08_Hotfix.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 08ebe6e4959b8c34aad49a439411e429 3 | folderAsset: yes 4 | timeCreated: 1482318804 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/XLua/Examples/08_Hotfix/HotfixTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using XLua; 4 | 5 | [Hotfix] 6 | public class HotfixTest : MonoBehaviour { 7 | LuaEnv luaenv = new LuaEnv(); 8 | 9 | public int tick = 0; //如果是private的,在lua设置xlua.private_accessible(CS.HotfixTest)后即可访问 10 | 11 | // Use this for initialization 12 | void Start () { 13 | } 14 | 15 | // Update is called once per frame 16 | void Update () { 17 | if (++tick % 50 == 0) 18 | { 19 | Debug.Log(">>>>>>>>Update in C#, tick = " + tick); 20 | } 21 | } 22 | 23 | void OnGUI() 24 | { 25 | if (GUI.Button(new Rect(10, 100, 300, 150), "Hotfix")) 26 | { 27 | luaenv.DoString(@" 28 | xlua.hotfix(CS.HotfixTest, 'Update', function(self) 29 | self.tick = self.tick + 1 30 | if (self.tick % 50) == 0 then 31 | print('<<<<<<< 2 | 3 | Lua documentation 4 | 5 | 6 | 7 | 8 | 9 |
10 |

11 | Lua 12 | Documentation 13 |

14 | 15 | This is the documentation included in the source distribution of Lua 5.1.5. 16 | 17 | 25 | 26 | Lua's 27 | official web site 28 | contains updated documentation, 29 | especially the 30 | reference manual. 31 |

32 | 33 |


34 | 35 | Last update: 36 | Fri Feb 3 09:44:42 BRST 2012 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/Makefile: -------------------------------------------------------------------------------- 1 | # makefile for Lua etc 2 | 3 | TOP= .. 4 | LIB= $(TOP)/src 5 | INC= $(TOP)/src 6 | BIN= $(TOP)/src 7 | SRC= $(TOP)/src 8 | TST= $(TOP)/test 9 | 10 | CC= gcc 11 | CFLAGS= -O2 -Wall -I$(INC) $(MYCFLAGS) 12 | MYCFLAGS= 13 | MYLDFLAGS= -Wl,-E 14 | MYLIBS= -lm 15 | #MYLIBS= -lm -Wl,-E -ldl -lreadline -lhistory -lncurses 16 | RM= rm -f 17 | 18 | default: 19 | @echo 'Please choose a target: min noparser one strict clean' 20 | 21 | min: min.c 22 | $(CC) $(CFLAGS) $@.c -L$(LIB) -llua $(MYLIBS) 23 | echo 'print"Hello there!"' | ./a.out 24 | 25 | noparser: noparser.o 26 | $(CC) noparser.o $(SRC)/lua.o -L$(LIB) -llua $(MYLIBS) 27 | $(BIN)/luac $(TST)/hello.lua 28 | -./a.out luac.out 29 | -./a.out -e'a=1' 30 | 31 | one: 32 | $(CC) $(CFLAGS) all.c $(MYLIBS) 33 | ./a.out $(TST)/hello.lua 34 | 35 | strict: 36 | -$(BIN)/lua -e 'print(a);b=2' 37 | -$(BIN)/lua -lstrict -e 'print(a)' 38 | -$(BIN)/lua -e 'function f() b=2 end f()' 39 | -$(BIN)/lua -lstrict -e 'function f() b=2 end f()' 40 | 41 | clean: 42 | $(RM) a.out core core.* *.o luac.out 43 | 44 | .PHONY: default min noparser one strict clean 45 | -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/README: -------------------------------------------------------------------------------- 1 | This directory contains some useful files and code. 2 | Unlike the code in ../src, everything here is in the public domain. 3 | 4 | If any of the makes fail, you're probably not using the same libraries 5 | used to build Lua. Set MYLIBS in Makefile accordingly. 6 | 7 | all.c 8 | Full Lua interpreter in a single file. 9 | Do "make one" for a demo. 10 | 11 | lua.hpp 12 | Lua header files for C++ using 'extern "C"'. 13 | 14 | lua.ico 15 | A Lua icon for Windows (and web sites: save as favicon.ico). 16 | Drawn by hand by Markus Gritsch . 17 | 18 | lua.pc 19 | pkg-config data for Lua 20 | 21 | luavs.bat 22 | Script to build Lua under "Visual Studio .NET Command Prompt". 23 | Run it from the toplevel as etc\luavs.bat. 24 | 25 | min.c 26 | A minimal Lua interpreter. 27 | Good for learning and for starting your own. 28 | Do "make min" for a demo. 29 | 30 | noparser.c 31 | Linking with noparser.o avoids loading the parsing modules in lualib.a. 32 | Do "make noparser" for a demo. 33 | 34 | strict.lua 35 | Traps uses of undeclared global variables. 36 | Do "make strict" for a demo. 37 | 38 | -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/all.c: -------------------------------------------------------------------------------- 1 | /* 2 | * all.c -- Lua core, libraries and interpreter in a single file 3 | */ 4 | 5 | #define luaall_c 6 | 7 | #include "lapi.c" 8 | #include "lcode.c" 9 | #include "ldebug.c" 10 | #include "ldo.c" 11 | #include "ldump.c" 12 | #include "lfunc.c" 13 | #include "lgc.c" 14 | #include "llex.c" 15 | #include "lmem.c" 16 | #include "lobject.c" 17 | #include "lopcodes.c" 18 | #include "lparser.c" 19 | #include "lstate.c" 20 | #include "lstring.c" 21 | #include "ltable.c" 22 | #include "ltm.c" 23 | #include "lundump.c" 24 | #include "lvm.c" 25 | #include "lzio.c" 26 | 27 | #include "lauxlib.c" 28 | #include "lbaselib.c" 29 | #include "ldblib.c" 30 | #include "liolib.c" 31 | #include "linit.c" 32 | #include "lmathlib.c" 33 | #include "loadlib.c" 34 | #include "loslib.c" 35 | #include "lstrlib.c" 36 | #include "ltablib.c" 37 | 38 | #include "lua.c" 39 | -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/lua.hpp: -------------------------------------------------------------------------------- 1 | // lua.hpp 2 | // Lua header files for C++ 3 | // <> not supplied automatically because Lua also compiles as C++ 4 | 5 | extern "C" { 6 | #include "lua.h" 7 | #include "lualib.h" 8 | #include "lauxlib.h" 9 | } 10 | -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/lua.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/build/lua-5.1.5/etc/lua.ico -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/lua.pc: -------------------------------------------------------------------------------- 1 | # lua.pc -- pkg-config data for Lua 2 | 3 | # vars from install Makefile 4 | 5 | # grep '^V=' ../Makefile 6 | V= 5.1 7 | # grep '^R=' ../Makefile 8 | R= 5.1.5 9 | 10 | # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/' 11 | prefix= /usr/local 12 | INSTALL_BIN= ${prefix}/bin 13 | INSTALL_INC= ${prefix}/include 14 | INSTALL_LIB= ${prefix}/lib 15 | INSTALL_MAN= ${prefix}/man/man1 16 | INSTALL_LMOD= ${prefix}/share/lua/${V} 17 | INSTALL_CMOD= ${prefix}/lib/lua/${V} 18 | 19 | # canonical vars 20 | exec_prefix=${prefix} 21 | libdir=${exec_prefix}/lib 22 | includedir=${prefix}/include 23 | 24 | Name: Lua 25 | Description: An Extensible Extension Language 26 | Version: ${R} 27 | Requires: 28 | Libs: -L${libdir} -llua -lm 29 | Cflags: -I${includedir} 30 | 31 | # (end of lua.pc) 32 | -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/luavs.bat: -------------------------------------------------------------------------------- 1 | @rem Script to build Lua under "Visual Studio .NET Command Prompt". 2 | @rem Do not run from this directory; run it from the toplevel: etc\luavs.bat . 3 | @rem It creates lua51.dll, lua51.lib, lua.exe, and luac.exe in src. 4 | @rem (contributed by David Manura and Mike Pall) 5 | 6 | @setlocal 7 | @set MYCOMPILE=cl /nologo /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE 8 | @set MYLINK=link /nologo 9 | @set MYMT=mt /nologo 10 | 11 | cd src 12 | %MYCOMPILE% /DLUA_BUILD_AS_DLL l*.c 13 | del lua.obj luac.obj 14 | %MYLINK% /DLL /out:lua51.dll l*.obj 15 | if exist lua51.dll.manifest^ 16 | %MYMT% -manifest lua51.dll.manifest -outputresource:lua51.dll;2 17 | %MYCOMPILE% /DLUA_BUILD_AS_DLL lua.c 18 | %MYLINK% /out:lua.exe lua.obj lua51.lib 19 | if exist lua.exe.manifest^ 20 | %MYMT% -manifest lua.exe.manifest -outputresource:lua.exe 21 | %MYCOMPILE% l*.c print.c 22 | del lua.obj linit.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj^ 23 | loslib.obj ltablib.obj lstrlib.obj loadlib.obj 24 | %MYLINK% /out:luac.exe *.obj 25 | if exist luac.exe.manifest^ 26 | %MYMT% -manifest luac.exe.manifest -outputresource:luac.exe 27 | del *.obj *.manifest 28 | cd .. 29 | -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/min.c: -------------------------------------------------------------------------------- 1 | /* 2 | * min.c -- a minimal Lua interpreter 3 | * loads stdin only with minimal error handling. 4 | * no interaction, and no standard library, only a "print" function. 5 | */ 6 | 7 | #include 8 | 9 | #include "lua.h" 10 | #include "lauxlib.h" 11 | 12 | static int print(lua_State *L) 13 | { 14 | int n=lua_gettop(L); 15 | int i; 16 | for (i=1; i<=n; i++) 17 | { 18 | if (i>1) printf("\t"); 19 | if (lua_isstring(L,i)) 20 | printf("%s",lua_tostring(L,i)); 21 | else if (lua_isnil(L,i)) 22 | printf("%s","nil"); 23 | else if (lua_isboolean(L,i)) 24 | printf("%s",lua_toboolean(L,i) ? "true" : "false"); 25 | else 26 | printf("%s:%p",luaL_typename(L,i),lua_topointer(L,i)); 27 | } 28 | printf("\n"); 29 | return 0; 30 | } 31 | 32 | int main(void) 33 | { 34 | lua_State *L=lua_open(); 35 | lua_register(L,"print",print); 36 | if (luaL_dofile(L,NULL)!=0) fprintf(stderr,"%s\n",lua_tostring(L,-1)); 37 | lua_close(L); 38 | return 0; 39 | } 40 | -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/strict.lua: -------------------------------------------------------------------------------- 1 | -- 2 | -- strict.lua 3 | -- checks uses of undeclared global variables 4 | -- All global variables must be 'declared' through a regular assignment 5 | -- (even assigning nil will do) in a main chunk before being used 6 | -- anywhere or assigned to inside a function. 7 | -- 8 | 9 | local getinfo, error, rawset, rawget = debug.getinfo, error, rawset, rawget 10 | 11 | local mt = getmetatable(_G) 12 | if mt == nil then 13 | mt = {} 14 | setmetatable(_G, mt) 15 | end 16 | 17 | mt.__declared = {} 18 | 19 | local function what () 20 | local d = getinfo(3, "S") 21 | return d and d.what or "C" 22 | end 23 | 24 | mt.__newindex = function (t, n, v) 25 | if not mt.__declared[n] then 26 | local w = what() 27 | if w ~= "main" and w ~= "C" then 28 | error("assign to undeclared variable '"..n.."'", 2) 29 | end 30 | mt.__declared[n] = true 31 | end 32 | rawset(t, n, v) 33 | end 34 | 35 | mt.__index = function (t, n) 36 | if not mt.__declared[n] and what() ~= "C" then 37 | error("variable '"..n.."' is not declared", 2) 38 | end 39 | return rawget(t, n) 40 | end 41 | 42 | -------------------------------------------------------------------------------- /build/lua-5.1.5/src/lapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lapi.h,v 2.2.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Auxiliary functions from Lua API 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lapi_h 8 | #define lapi_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | LUAI_FUNC void luaA_pushobject (lua_State *L, const TValue *o); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /build/lua-5.1.5/src/ldebug.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ldebug.h,v 2.3.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Auxiliary functions from Debug Interface module 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ldebug_h 8 | #define ldebug_h 9 | 10 | 11 | #include "lstate.h" 12 | 13 | 14 | #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) 15 | 16 | #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) 17 | 18 | #define resethookcount(L) (L->hookcount = L->basehookcount) 19 | 20 | 21 | LUAI_FUNC void luaG_typeerror (lua_State *L, const TValue *o, 22 | const char *opname); 23 | LUAI_FUNC void luaG_concaterror (lua_State *L, StkId p1, StkId p2); 24 | LUAI_FUNC void luaG_aritherror (lua_State *L, const TValue *p1, 25 | const TValue *p2); 26 | LUAI_FUNC int luaG_ordererror (lua_State *L, const TValue *p1, 27 | const TValue *p2); 28 | LUAI_FUNC void luaG_runerror (lua_State *L, const char *fmt, ...); 29 | LUAI_FUNC void luaG_errormsg (lua_State *L); 30 | LUAI_FUNC int luaG_checkcode (const Proto *pt); 31 | LUAI_FUNC int luaG_checkopenop (Instruction i); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /build/lua-5.1.5/src/linit.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: linit.c,v 1.14.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Initialization of libraries for lua.c 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #define linit_c 9 | #define LUA_LIB 10 | 11 | #include "lua.h" 12 | 13 | #include "lualib.h" 14 | #include "lauxlib.h" 15 | 16 | 17 | static const luaL_Reg lualibs[] = { 18 | {"", luaopen_base}, 19 | {LUA_LOADLIBNAME, luaopen_package}, 20 | {LUA_TABLIBNAME, luaopen_table}, 21 | {LUA_IOLIBNAME, luaopen_io}, 22 | {LUA_OSLIBNAME, luaopen_os}, 23 | {LUA_STRLIBNAME, luaopen_string}, 24 | {LUA_MATHLIBNAME, luaopen_math}, 25 | {LUA_DBLIBNAME, luaopen_debug}, 26 | {NULL, NULL} 27 | }; 28 | 29 | 30 | LUALIB_API void luaL_openlibs (lua_State *L) { 31 | const luaL_Reg *lib = lualibs; 32 | for (; lib->func; lib++) { 33 | lua_pushcfunction(L, lib->func); 34 | lua_pushstring(L, lib->name); 35 | lua_call(L, 1, 0); 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /build/lua-5.1.5/src/lstring.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lstring.h,v 1.43.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** String table (keep all strings handled by Lua) 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lstring_h 8 | #define lstring_h 9 | 10 | 11 | #include "lgc.h" 12 | #include "lobject.h" 13 | #include "lstate.h" 14 | 15 | 16 | #define sizestring(s) (sizeof(union TString)+((s)->len+1)*sizeof(char)) 17 | 18 | #define sizeudata(u) (sizeof(union Udata)+(u)->len) 19 | 20 | #define luaS_new(L, s) (luaS_newlstr(L, s, strlen(s))) 21 | #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ 22 | (sizeof(s)/sizeof(char))-1)) 23 | 24 | #define luaS_fix(s) l_setbit((s)->tsv.marked, FIXEDBIT) 25 | 26 | LUAI_FUNC void luaS_resize (lua_State *L, int newsize); 27 | LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e); 28 | LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); 29 | 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /build/lua-5.1.5/src/lundump.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lundump.h,v 1.37.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** load precompiled Lua chunks 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lundump_h 8 | #define lundump_h 9 | 10 | #include "lobject.h" 11 | #include "lzio.h" 12 | 13 | /* load one chunk; from lundump.c */ 14 | LUAI_FUNC Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name); 15 | 16 | /* make header; from lundump.c */ 17 | LUAI_FUNC void luaU_header (char* h); 18 | 19 | /* dump one chunk; from ldump.c */ 20 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); 21 | 22 | #ifdef luac_c 23 | /* print one chunk; from print.c */ 24 | LUAI_FUNC void luaU_print (const Proto* f, int full); 25 | #endif 26 | 27 | /* for header of binary files -- this is Lua 5.1 */ 28 | #define LUAC_VERSION 0x51 29 | 30 | /* for header of binary files -- this is the official format */ 31 | #define LUAC_FORMAT 0 32 | 33 | /* size of header of binary files */ 34 | #define LUAC_HEADERSIZE 12 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /build/lua-5.3.3/README: -------------------------------------------------------------------------------- 1 | 2 | This is Lua 5.3.3, released on 30 May 2016. 3 | 4 | For installation instructions, license details, and 5 | further information about Lua, see doc/readme.html. 6 | 7 | -------------------------------------------------------------------------------- /build/lua-5.3.3/cmake/FindReadline.cmake: -------------------------------------------------------------------------------- 1 | # - Try to find Readline 2 | # Once done this will define 3 | # READLINE_FOUND - System has readline 4 | # READLINE_INCLUDE_DIRS - The readline include directories 5 | # READLINE_LIBRARIES - The libraries needed to use readline 6 | # READLINE_DEFINITIONS - Compiler switches required for using readline 7 | 8 | find_package ( PkgConfig ) 9 | pkg_check_modules ( PC_READLINE QUIET readline ) 10 | set ( READLINE_DEFINITIONS ${PC_READLINE_CFLAGS_OTHER} ) 11 | 12 | find_path ( READLINE_INCLUDE_DIR readline/readline.h 13 | HINTS ${PC_READLINE_INCLUDEDIR} ${PC_READLINE_INCLUDE_DIRS} 14 | PATH_SUFFIXES readline ) 15 | 16 | find_library ( READLINE_LIBRARY NAMES readline 17 | HINTS ${PC_READLINE_LIBDIR} ${PC_READLINE_LIBRARY_DIRS} ) 18 | 19 | set ( READLINE_LIBRARIES ${READLINE_LIBRARY} ) 20 | set ( READLINE_INCLUDE_DIRS ${READLINE_INCLUDE_DIR} ) 21 | 22 | include ( FindPackageHandleStandardArgs ) 23 | # handle the QUIETLY and REQUIRED arguments and set READLINE_FOUND to TRUE 24 | # if all listed variables are TRUE 25 | find_package_handle_standard_args ( readline DEFAULT_MSG READLINE_LIBRARY READLINE_INCLUDE_DIR ) 26 | -------------------------------------------------------------------------------- /build/lua-5.3.3/dist.info: -------------------------------------------------------------------------------- 1 | --- This file is part of LuaDist project 2 | 3 | name = "lua" 4 | version = "5.3.2" 5 | 6 | desc = "Lua is a powerful, fast, light-weight, embeddable scripting language." 7 | author = "Roberto Ierusalimschy, Waldemar Celes, Luiz Henrique de Figueiredo" 8 | license = "MIT/X11" 9 | url = "http://www.lua.org" 10 | maintainer = "Peter Drahoš" 11 | 12 | -------------------------------------------------------------------------------- /build/lua-5.3.3/doc/index.css: -------------------------------------------------------------------------------- 1 | ul { 2 | list-style-type: none ; 3 | } 4 | 5 | ul.contents { 6 | padding: 0 ; 7 | } 8 | 9 | table { 10 | border: none ; 11 | border-spacing: 0 ; 12 | border-collapse: collapse ; 13 | } 14 | 15 | td { 16 | vertical-align: top ; 17 | padding: 0 ; 18 | text-align: left ; 19 | line-height: 1.25 ; 20 | width: 15% ; 21 | } 22 | -------------------------------------------------------------------------------- /build/lua-5.3.3/doc/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/build/lua-5.3.3/doc/logo.gif -------------------------------------------------------------------------------- /build/lua-5.3.3/doc/manual.css: -------------------------------------------------------------------------------- 1 | h3 code { 2 | font-family: inherit ; 3 | font-size: inherit ; 4 | } 5 | 6 | pre, code { 7 | font-size: 12pt ; 8 | } 9 | 10 | span.apii { 11 | color: gray ; 12 | float: right ; 13 | font-family: inherit ; 14 | font-style: normal ; 15 | font-size: small ; 16 | } 17 | 18 | h2:before { 19 | content: "" ; 20 | padding-right: 0em ; 21 | } 22 | -------------------------------------------------------------------------------- /build/lua-5.3.3/doc/osi-certified-72x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/build/lua-5.3.3/doc/osi-certified-72x60.png -------------------------------------------------------------------------------- /build/lua-5.3.3/etc/lua.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/build/lua-5.3.3/etc/lua.ico -------------------------------------------------------------------------------- /build/lua-5.3.3/etc/lua.pc: -------------------------------------------------------------------------------- 1 | # lua.pc -- pkg-config data for Lua 2 | 3 | # vars from install Makefile 4 | 5 | # grep '^V=' ../Makefile 6 | V= 5.1 7 | # grep '^R=' ../Makefile 8 | R= 5.1.5 9 | 10 | # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/' 11 | prefix= /usr/local 12 | INSTALL_BIN= ${prefix}/bin 13 | INSTALL_INC= ${prefix}/include 14 | INSTALL_LIB= ${prefix}/lib 15 | INSTALL_MAN= ${prefix}/man/man1 16 | INSTALL_LMOD= ${prefix}/share/lua/${V} 17 | INSTALL_CMOD= ${prefix}/lib/lua/${V} 18 | 19 | # canonical vars 20 | exec_prefix=${prefix} 21 | libdir=${exec_prefix}/lib 22 | includedir=${prefix}/include 23 | 24 | Name: Lua 25 | Description: An Extensible Extension Language 26 | Version: ${R} 27 | Requires: 28 | Libs: -L${libdir} -llua -lm 29 | Cflags: -I${includedir} 30 | 31 | # (end of lua.pc) 32 | -------------------------------------------------------------------------------- /build/lua-5.3.3/etc/lua_lang.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/build/lua-5.3.3/etc/lua_lang.ico -------------------------------------------------------------------------------- /build/lua-5.3.3/src/lapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lapi.h,v 2.9 2015/03/06 19:49:50 roberto Exp $ 3 | ** Auxiliary functions from Lua API 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lapi_h 8 | #define lapi_h 9 | 10 | 11 | #include "llimits.h" 12 | #include "lstate.h" 13 | 14 | #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \ 15 | "stack overflow");} 16 | 17 | #define adjustresults(L,nres) \ 18 | { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; } 19 | 20 | #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \ 21 | "not enough elements in the stack") 22 | 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /build/lua-5.3.3/src/lprefix.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lprefix.h,v 1.2 2014/12/29 16:54:13 roberto Exp $ 3 | ** Definitions for Lua code that must come before any other header file 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lprefix_h 8 | #define lprefix_h 9 | 10 | 11 | /* 12 | ** Allows POSIX/XSI stuff 13 | */ 14 | #if !defined(LUA_USE_C89) /* { */ 15 | 16 | #if !defined(_XOPEN_SOURCE) 17 | #define _XOPEN_SOURCE 600 18 | #elif _XOPEN_SOURCE == 0 19 | #undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */ 20 | #endif 21 | 22 | /* 23 | ** Allows manipulation of large files in gcc and some other compilers 24 | */ 25 | #if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS) 26 | #define _LARGEFILE_SOURCE 1 27 | #define _FILE_OFFSET_BITS 64 28 | #endif 29 | 30 | #endif /* } */ 31 | 32 | 33 | /* 34 | ** Windows stuff 35 | */ 36 | #if defined(_WIN32) /* { */ 37 | 38 | #if !defined(_CRT_SECURE_NO_WARNINGS) 39 | #define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */ 40 | #endif 41 | 42 | #endif /* } */ 43 | 44 | #endif 45 | 46 | -------------------------------------------------------------------------------- /build/lua-5.3.3/src/lua.hpp: -------------------------------------------------------------------------------- 1 | // lua.hpp 2 | // Lua header files for C++ 3 | // <> not supplied automatically because Lua also compiles as C++ 4 | 5 | extern "C" { 6 | #include "lua.h" 7 | #include "lualib.h" 8 | #include "lauxlib.h" 9 | } 10 | -------------------------------------------------------------------------------- /build/lua-5.3.3/src/lua.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/build/lua-5.3.3/src/lua.rc -------------------------------------------------------------------------------- /build/lua-5.3.3/src/luac.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/build/lua-5.3.3/src/luac.rc -------------------------------------------------------------------------------- /build/lua-5.3.3/src/lundump.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lundump.h,v 1.45 2015/09/08 15:41:05 roberto Exp $ 3 | ** load precompiled Lua chunks 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lundump_h 8 | #define lundump_h 9 | 10 | #include "llimits.h" 11 | #include "lobject.h" 12 | #include "lzio.h" 13 | 14 | 15 | /* data to catch conversion errors */ 16 | #define LUAC_DATA "\x19\x93\r\n\x1a\n" 17 | 18 | #define LUAC_INT 0x5678 19 | #define LUAC_NUM cast_num(370.5) 20 | 21 | #define MYINT(s) (s[0]-'0') 22 | #define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) 23 | #define LUAC_FORMAT 0 /* this is the official format */ 24 | 25 | /* load one chunk; from lundump.c */ 26 | LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name); 27 | 28 | /* dump one chunk; from ldump.c */ 29 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, 30 | void* data, int strip); 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /build/lua-5.3.3/src/wmain.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include /* declaration of __argc and __argv */ 3 | 4 | extern int main(int, char **); 5 | 6 | int PASCAL WinMain(HINSTANCE hinst, HINSTANCE hprev, LPSTR cmdline, int ncmdshow) 7 | { 8 | int rc; 9 | 10 | extern int __argc; /* this seems to work for all the compilers we tested, except Watcom compilers */ 11 | extern char** __argv; 12 | 13 | rc = main(__argc, __argv); 14 | 15 | return rc; 16 | } 17 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/README: -------------------------------------------------------------------------------- 1 | README for LuaJIT 2.1.0-beta2 2 | ----------------------------- 3 | 4 | LuaJIT is a Just-In-Time (JIT) compiler for the Lua programming language. 5 | 6 | Project Homepage: http://luajit.org/ 7 | 8 | LuaJIT is Copyright (C) 2005-2016 Mike Pall. 9 | LuaJIT is free software, released under the MIT license. 10 | See full Copyright Notice in the COPYRIGHT file or in luajit.h. 11 | 12 | Documentation for LuaJIT is available in HTML format. 13 | Please point your favorite browser to: 14 | 15 | doc/luajit.html 16 | 17 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/doc/img/contact.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlueWhaleTimes/xLua4UGUI/a9706cf7c46df0b4c35afd922accb63fbce8311d/build/luajit-2.1.0b2/doc/img/contact.png -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/dynasm/dasm_x64.lua: -------------------------------------------------------------------------------- 1 | ------------------------------------------------------------------------------ 2 | -- DynASM x64 module. 3 | -- 4 | -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. 5 | -- See dynasm.lua for full copyright notice. 6 | ------------------------------------------------------------------------------ 7 | -- This module just sets 64 bit mode for the combined x86/x64 module. 8 | -- All the interesting stuff is there. 9 | ------------------------------------------------------------------------------ 10 | 11 | x64 = true -- Using a global is an ugly, but effective solution. 12 | return require("dasm_x86") 13 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/etc/luajit.pc: -------------------------------------------------------------------------------- 1 | # Package information for LuaJIT to be used by pkg-config. 2 | majver=2 3 | minver=1 4 | relver=0 5 | version=${majver}.${minver}.${relver}-beta2 6 | abiver=5.1 7 | 8 | prefix=/usr/local 9 | multilib=lib 10 | exec_prefix=${prefix} 11 | libdir=${exec_prefix}/${multilib} 12 | libname=luajit-${abiver} 13 | includedir=${prefix}/include/luajit-${majver}.${minver} 14 | 15 | INSTALL_LMOD=${prefix}/share/lua/${abiver} 16 | INSTALL_CMOD=${prefix}/${multilib}/lua/${abiver} 17 | 18 | Name: LuaJIT 19 | Description: Just-in-time compiler for Lua 20 | URL: http://luajit.org 21 | Version: ${version} 22 | Requires: 23 | Libs: -L${libdir} -l${libname} 24 | Libs.private: -Wl,-E -lm -ldl 25 | Cflags: -I${includedir} 26 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/host/README: -------------------------------------------------------------------------------- 1 | The files in this directory are only used during the build process of LuaJIT. 2 | For cross-compilation, they must be executed on the host, not on the target. 3 | 4 | These files should NOT be installed! 5 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/jit/dis_mipsel.lua: -------------------------------------------------------------------------------- 1 | ---------------------------------------------------------------------------- 2 | -- LuaJIT MIPSEL disassembler wrapper module. 3 | -- 4 | -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. 5 | -- Released under the MIT license. See Copyright Notice in luajit.h 6 | ---------------------------------------------------------------------------- 7 | -- This module just exports the little-endian functions from the 8 | -- MIPS disassembler module. All the interesting stuff is there. 9 | ------------------------------------------------------------------------------ 10 | 11 | local dis_mips = require((string.match(..., ".*%.") or "").."dis_mips") 12 | return { 13 | create = dis_mips.create_el, 14 | disass = dis_mips.disass_el, 15 | regname = dis_mips.regname 16 | } 17 | 18 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/jit/dis_x64.lua: -------------------------------------------------------------------------------- 1 | ---------------------------------------------------------------------------- 2 | -- LuaJIT x64 disassembler wrapper module. 3 | -- 4 | -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. 5 | -- Released under the MIT license. See Copyright Notice in luajit.h 6 | ---------------------------------------------------------------------------- 7 | -- This module just exports the 64 bit functions from the combined 8 | -- x86/x64 disassembler module. All the interesting stuff is there. 9 | ------------------------------------------------------------------------------ 10 | 11 | local dis_x86 = require((string.match(..., ".*%.") or "").."dis_x86") 12 | return { 13 | create = dis_x86.create64, 14 | disass = dis_x86.disass64, 15 | regname = dis_x86.regname64 16 | } 17 | 18 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/jit/zone.lua: -------------------------------------------------------------------------------- 1 | ---------------------------------------------------------------------------- 2 | -- LuaJIT profiler zones. 3 | -- 4 | -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. 5 | -- Released under the MIT license. See Copyright Notice in luajit.h 6 | ---------------------------------------------------------------------------- 7 | -- 8 | -- This module implements a simple hierarchical zone model. 9 | -- 10 | -- Example usage: 11 | -- 12 | -- local zone = require("jit.zone") 13 | -- zone("AI") 14 | -- ... 15 | -- zone("A*") 16 | -- ... 17 | -- print(zone:get()) --> "A*" 18 | -- ... 19 | -- zone() 20 | -- ... 21 | -- print(zone:get()) --> "AI" 22 | -- ... 23 | -- zone() 24 | -- 25 | ---------------------------------------------------------------------------- 26 | 27 | local remove = table.remove 28 | 29 | return setmetatable({ 30 | flush = function(t) 31 | for i=#t,1,-1 do t[i] = nil end 32 | end, 33 | get = function(t) 34 | return t[#t] 35 | end 36 | }, { 37 | __call = function(t, zone) 38 | if zone then 39 | t[#t+1] = zone 40 | else 41 | return (assert(remove(t), "empty zone stack")) 42 | end 43 | end 44 | }) 45 | 46 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj.supp: -------------------------------------------------------------------------------- 1 | # Valgrind suppression file for LuaJIT 2.0. 2 | { 3 | Optimized string compare 4 | Memcheck:Addr4 5 | fun:lj_str_cmp 6 | } 7 | { 8 | Optimized string compare 9 | Memcheck:Addr1 10 | fun:lj_str_cmp 11 | } 12 | { 13 | Optimized string compare 14 | Memcheck:Addr4 15 | fun:lj_str_new 16 | } 17 | { 18 | Optimized string compare 19 | Memcheck:Addr1 20 | fun:lj_str_new 21 | } 22 | { 23 | Optimized string compare 24 | Memcheck:Cond 25 | fun:lj_str_new 26 | } 27 | { 28 | Optimized string compare 29 | Memcheck:Addr4 30 | fun:lj_str_fastcmp 31 | } 32 | { 33 | Optimized string compare 34 | Memcheck:Addr1 35 | fun:lj_str_fastcmp 36 | } 37 | { 38 | Optimized string compare 39 | Memcheck:Cond 40 | fun:lj_str_fastcmp 41 | } 42 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_alloc.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Bundled memory allocator. 3 | ** Donated to the public domain. 4 | */ 5 | 6 | #ifndef _LJ_ALLOC_H 7 | #define _LJ_ALLOC_H 8 | 9 | #include "lj_def.h" 10 | 11 | #ifndef LUAJIT_USE_SYSMALLOC 12 | LJ_FUNC void *lj_alloc_create(void); 13 | LJ_FUNC void lj_alloc_destroy(void *msp); 14 | LJ_FUNC void *lj_alloc_f(void *msp, void *ptr, size_t osize, size_t nsize); 15 | #endif 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_asm.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** IR assembler (SSA IR -> machine code). 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_ASM_H 7 | #define _LJ_ASM_H 8 | 9 | #include "lj_jit.h" 10 | 11 | #if LJ_HASJIT 12 | LJ_FUNC void lj_asm_trace(jit_State *J, GCtrace *T); 13 | LJ_FUNC void lj_asm_patchexit(jit_State *J, GCtrace *T, ExitNo exitno, 14 | MCode *target); 15 | #endif 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_bc.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** Bytecode instruction modes. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #define lj_bc_c 7 | #define LUA_CORE 8 | 9 | #include "lj_obj.h" 10 | #include "lj_bc.h" 11 | 12 | /* Bytecode offsets and bytecode instruction modes. */ 13 | #include "lj_bcdef.h" 14 | 15 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_ccallback.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** FFI C callback handling. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_CCALLBACK_H 7 | #define _LJ_CCALLBACK_H 8 | 9 | #include "lj_obj.h" 10 | #include "lj_ctype.h" 11 | 12 | #if LJ_HASFFI 13 | 14 | /* Really belongs to lj_vm.h. */ 15 | LJ_ASMF void lj_vm_ffi_callback(void); 16 | 17 | LJ_FUNC MSize lj_ccallback_ptr2slot(CTState *cts, void *p); 18 | LJ_FUNCA lua_State * LJ_FASTCALL lj_ccallback_enter(CTState *cts, void *cf); 19 | LJ_FUNCA void LJ_FASTCALL lj_ccallback_leave(CTState *cts, TValue *o); 20 | LJ_FUNC void *lj_ccallback_new(CTState *cts, CType *ct, GCfunc *fn); 21 | LJ_FUNC void lj_ccallback_mcode_free(CTState *cts); 22 | 23 | #endif 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_clib.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** FFI C library loader. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_CLIB_H 7 | #define _LJ_CLIB_H 8 | 9 | #include "lj_obj.h" 10 | 11 | #if LJ_HASFFI 12 | 13 | /* Namespace for C library indexing. */ 14 | #define CLNS_INDEX ((1u<env. */ 20 | } CLibrary; 21 | 22 | LJ_FUNC TValue *lj_clib_index(lua_State *L, CLibrary *cl, GCstr *name); 23 | LJ_FUNC void lj_clib_load(lua_State *L, GCtab *mt, GCstr *name, int global); 24 | LJ_FUNC void lj_clib_unload(CLibrary *cl); 25 | LJ_FUNC void lj_clib_default(lua_State *L, GCtab *mt); 26 | 27 | #endif 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_ff.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Fast function IDs. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_FF_H 7 | #define _LJ_FF_H 8 | 9 | /* Fast function ID. */ 10 | typedef enum { 11 | FF_LUA_ = FF_LUA, /* Lua function (must be 0). */ 12 | FF_C_ = FF_C, /* Regular C function (must be 1). */ 13 | #define FFDEF(name) FF_##name, 14 | #include "lj_ffdef.h" 15 | FF__MAX 16 | } FastFunc; 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_ffrecord.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Fast function call recorder. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_FFRECORD_H 7 | #define _LJ_FFRECORD_H 8 | 9 | #include "lj_obj.h" 10 | #include "lj_jit.h" 11 | 12 | #if LJ_HASJIT 13 | /* Data used by handlers to record a fast function. */ 14 | typedef struct RecordFFData { 15 | TValue *argv; /* Runtime argument values. */ 16 | ptrdiff_t nres; /* Number of returned results (defaults to 1). */ 17 | uint32_t data; /* Per-ffid auxiliary data (opcode, literal etc.). */ 18 | } RecordFFData; 19 | 20 | LJ_FUNC int32_t lj_ffrecord_select_mode(jit_State *J, TRef tr, TValue *tv); 21 | LJ_FUNC void lj_ffrecord_func(jit_State *J); 22 | #endif 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_func.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Function handling (prototypes, functions and upvalues). 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_FUNC_H 7 | #define _LJ_FUNC_H 8 | 9 | #include "lj_obj.h" 10 | 11 | /* Prototypes. */ 12 | LJ_FUNC void LJ_FASTCALL lj_func_freeproto(global_State *g, GCproto *pt); 13 | 14 | /* Upvalues. */ 15 | LJ_FUNCA void LJ_FASTCALL lj_func_closeuv(lua_State *L, TValue *level); 16 | LJ_FUNC void LJ_FASTCALL lj_func_freeuv(global_State *g, GCupval *uv); 17 | 18 | /* Functions (closures). */ 19 | LJ_FUNC GCfunc *lj_func_newC(lua_State *L, MSize nelems, GCtab *env); 20 | LJ_FUNC GCfunc *lj_func_newL_empty(lua_State *L, GCproto *pt, GCtab *env); 21 | LJ_FUNCA GCfunc *lj_func_newL_gc(lua_State *L, GCproto *pt, GCfuncL *parent); 22 | LJ_FUNC void LJ_FASTCALL lj_func_free(global_State *g, GCfunc *c); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_gdbjit.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Client for the GDB JIT API. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_GDBJIT_H 7 | #define _LJ_GDBJIT_H 8 | 9 | #include "lj_obj.h" 10 | #include "lj_jit.h" 11 | 12 | #if LJ_HASJIT && defined(LUAJIT_USE_GDBJIT) 13 | 14 | LJ_FUNC void lj_gdbjit_addtrace(jit_State *J, GCtrace *T); 15 | LJ_FUNC void lj_gdbjit_deltrace(jit_State *J, GCtrace *T); 16 | 17 | #else 18 | #define lj_gdbjit_addtrace(J, T) UNUSED(T) 19 | #define lj_gdbjit_deltrace(J, T) UNUSED(T) 20 | #endif 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_mcode.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Machine code management. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_MCODE_H 7 | #define _LJ_MCODE_H 8 | 9 | #include "lj_obj.h" 10 | 11 | #if LJ_HASJIT || LJ_HASFFI 12 | LJ_FUNC void lj_mcode_sync(void *start, void *end); 13 | #endif 14 | 15 | #if LJ_HASJIT 16 | 17 | #include "lj_jit.h" 18 | 19 | LJ_FUNC void lj_mcode_free(jit_State *J); 20 | LJ_FUNC MCode *lj_mcode_reserve(jit_State *J, MCode **lim); 21 | LJ_FUNC void lj_mcode_commit(jit_State *J, MCode *m); 22 | LJ_FUNC void lj_mcode_abort(jit_State *J); 23 | LJ_FUNC MCode *lj_mcode_patch(jit_State *J, MCode *ptr, int finish); 24 | LJ_FUNC_NORET void lj_mcode_limiterr(jit_State *J, size_t need); 25 | 26 | #define lj_mcode_commitbot(J, m) (J->mcbot = (m)) 27 | 28 | #endif 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_parse.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Lua parser (source code -> bytecode). 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_PARSE_H 7 | #define _LJ_PARSE_H 8 | 9 | #include "lj_obj.h" 10 | #include "lj_lex.h" 11 | 12 | LJ_FUNC GCproto *lj_parse(LexState *ls); 13 | LJ_FUNC GCstr *lj_parse_keepstr(LexState *ls, const char *str, size_t l); 14 | #if LJ_HASFFI 15 | LJ_FUNC void lj_parse_keepcdata(LexState *ls, TValue *tv, GCcdata *cd); 16 | #endif 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_profile.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Low-overhead profiling. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_PROFILE_H 7 | #define _LJ_PROFILE_H 8 | 9 | #include "lj_obj.h" 10 | 11 | #if LJ_HASPROFILE 12 | 13 | LJ_FUNC void LJ_FASTCALL lj_profile_interpreter(lua_State *L); 14 | #if !LJ_PROFILE_SIGPROF 15 | LJ_FUNC void LJ_FASTCALL lj_profile_hook_enter(global_State *g); 16 | LJ_FUNC void LJ_FASTCALL lj_profile_hook_leave(global_State *g); 17 | #endif 18 | 19 | #endif 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_snap.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Snapshot handling. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_SNAP_H 7 | #define _LJ_SNAP_H 8 | 9 | #include "lj_obj.h" 10 | #include "lj_jit.h" 11 | 12 | #if LJ_HASJIT 13 | LJ_FUNC void lj_snap_add(jit_State *J); 14 | LJ_FUNC void lj_snap_purge(jit_State *J); 15 | LJ_FUNC void lj_snap_shrink(jit_State *J); 16 | LJ_FUNC IRIns *lj_snap_regspmap(GCtrace *T, SnapNo snapno, IRIns *ir); 17 | LJ_FUNC void lj_snap_replay(jit_State *J, GCtrace *T); 18 | LJ_FUNC const BCIns *lj_snap_restore(jit_State *J, void *exptr); 19 | LJ_FUNC void lj_snap_grow_buf_(jit_State *J, MSize need); 20 | LJ_FUNC void lj_snap_grow_map_(jit_State *J, MSize need); 21 | 22 | static LJ_AINLINE void lj_snap_grow_buf(jit_State *J, MSize need) 23 | { 24 | if (LJ_UNLIKELY(need > J->sizesnap)) lj_snap_grow_buf_(J, need); 25 | } 26 | 27 | static LJ_AINLINE void lj_snap_grow_map(jit_State *J, MSize need) 28 | { 29 | if (LJ_UNLIKELY(need > J->sizesnapmap)) lj_snap_grow_map_(J, need); 30 | } 31 | 32 | #endif 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_state.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** State and stack handling. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_STATE_H 7 | #define _LJ_STATE_H 8 | 9 | #include "lj_obj.h" 10 | 11 | #define incr_top(L) \ 12 | (++L->top >= tvref(L->maxstack) && (lj_state_growstack1(L), 0)) 13 | 14 | #define savestack(L, p) ((char *)(p) - mref(L->stack, char)) 15 | #define restorestack(L, n) ((TValue *)(mref(L->stack, char) + (n))) 16 | 17 | LJ_FUNC void lj_state_relimitstack(lua_State *L); 18 | LJ_FUNC void lj_state_shrinkstack(lua_State *L, MSize used); 19 | LJ_FUNCA void LJ_FASTCALL lj_state_growstack(lua_State *L, MSize need); 20 | LJ_FUNC void LJ_FASTCALL lj_state_growstack1(lua_State *L); 21 | 22 | static LJ_AINLINE void lj_state_checkstack(lua_State *L, MSize need) 23 | { 24 | if ((mref(L->maxstack, char) - (char *)L->top) <= 25 | (ptrdiff_t)need*(ptrdiff_t)sizeof(TValue)) 26 | lj_state_growstack(L, need); 27 | } 28 | 29 | LJ_FUNC lua_State *lj_state_new(lua_State *L); 30 | LJ_FUNC void LJ_FASTCALL lj_state_free(global_State *g, lua_State *L); 31 | #if LJ_64 32 | LJ_FUNC lua_State *lj_state_newstate(lua_Alloc f, void *ud); 33 | #endif 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_str.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** String handling. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_STR_H 7 | #define _LJ_STR_H 8 | 9 | #include 10 | 11 | #include "lj_obj.h" 12 | 13 | /* String helpers. */ 14 | LJ_FUNC int32_t LJ_FASTCALL lj_str_cmp(GCstr *a, GCstr *b); 15 | LJ_FUNC const char *lj_str_find(const char *s, const char *f, 16 | MSize slen, MSize flen); 17 | LJ_FUNC int lj_str_haspattern(GCstr *s); 18 | 19 | /* String interning. */ 20 | LJ_FUNC void lj_str_resize(lua_State *L, MSize newmask); 21 | LJ_FUNCA GCstr *lj_str_new(lua_State *L, const char *str, size_t len); 22 | LJ_FUNC void LJ_FASTCALL lj_str_free(global_State *g, GCstr *s); 23 | 24 | #define lj_str_newz(L, s) (lj_str_new(L, s, strlen(s))) 25 | #define lj_str_newlit(L, s) (lj_str_new(L, "" s, sizeof(s)-1)) 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_udata.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** Userdata handling. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #define lj_udata_c 7 | #define LUA_CORE 8 | 9 | #include "lj_obj.h" 10 | #include "lj_gc.h" 11 | #include "lj_udata.h" 12 | 13 | GCudata *lj_udata_new(lua_State *L, MSize sz, GCtab *env) 14 | { 15 | GCudata *ud = lj_mem_newt(L, sizeof(GCudata) + sz, GCudata); 16 | global_State *g = G(L); 17 | newwhite(g, ud); /* Not finalized. */ 18 | ud->gct = ~LJ_TUDATA; 19 | ud->udtype = UDTYPE_USERDATA; 20 | ud->len = sz; 21 | /* NOBARRIER: The GCudata is new (marked white). */ 22 | setgcrefnull(ud->metatable); 23 | setgcref(ud->env, obj2gco(env)); 24 | /* Chain to userdata list (after main thread). */ 25 | setgcrefr(ud->nextgc, mainthread(g)->nextgc); 26 | setgcref(mainthread(g)->nextgc, obj2gco(ud)); 27 | return ud; 28 | } 29 | 30 | void LJ_FASTCALL lj_udata_free(global_State *g, GCudata *ud) 31 | { 32 | lj_mem_free(g, ud, sizeudata(ud)); 33 | } 34 | 35 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_udata.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Userdata handling. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_UDATA_H 7 | #define _LJ_UDATA_H 8 | 9 | #include "lj_obj.h" 10 | 11 | LJ_FUNC GCudata *lj_udata_new(lua_State *L, MSize sz, GCtab *env); 12 | LJ_FUNC void LJ_FASTCALL lj_udata_free(global_State *g, GCudata *ud); 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lua.hpp: -------------------------------------------------------------------------------- 1 | // C++ wrapper for LuaJIT header files. 2 | 3 | extern "C" { 4 | #include "lua.h" 5 | #include "lauxlib.h" 6 | #include "lualib.h" 7 | #include "luajit.h" 8 | } 9 | 10 | -------------------------------------------------------------------------------- /build/luasocket/luasocket.h: -------------------------------------------------------------------------------- 1 | #ifndef LUASOCKET_H 2 | #define LUASOCKET_H 3 | /*=========================================================================*\ 4 | * LuaSocket toolkit 5 | * Networking support for the Lua language 6 | * Diego Nehab 7 | * 9/11/1999 8 | \*=========================================================================*/ 9 | #include "lua.h" 10 | 11 | /*-------------------------------------------------------------------------*\ 12 | * Current socket library version 13 | \*-------------------------------------------------------------------------*/ 14 | #define LUASOCKET_VERSION "LuaSocket 3.0-rc1" 15 | #define LUASOCKET_COPYRIGHT "Copyright (C) 1999-2013 Diego Nehab" 16 | 17 | /*-------------------------------------------------------------------------*\ 18 | * Initializes the library. 19 | \*-------------------------------------------------------------------------*/ 20 | LUA_API int luaopen_socket_core(lua_State *L); 21 | 22 | #endif /* LUASOCKET_H */ 23 | -------------------------------------------------------------------------------- /build/luasocket/luasocket_scripts.h: -------------------------------------------------------------------------------- 1 | 2 | /* luasocket_scripts.h.h */ 3 | 4 | #ifndef __LUA_MODULES_606BA1C00D116CA81B695C141D124DB7_H_ 5 | #define __LUA_MODULES_606BA1C00D116CA81B695C141D124DB7_H_ 6 | 7 | #if __cplusplus 8 | extern "C" { 9 | #endif 10 | 11 | #include "lua.h" 12 | 13 | void luaopen_luasocket_scripts(lua_State* L); 14 | 15 | /* 16 | int luaopen_lua_m_ltn12(lua_State* L); 17 | int luaopen_lua_m_mime(lua_State* L); 18 | int luaopen_lua_m_socket_ftp(lua_State* L); 19 | int luaopen_lua_m_socket_headers(lua_State* L); 20 | int luaopen_lua_m_socket_http(lua_State* L); 21 | int luaopen_lua_m_socket_mbox(lua_State* L); 22 | int luaopen_lua_m_socket_smtp(lua_State* L); 23 | int luaopen_lua_m_socket_tp(lua_State* L); 24 | int luaopen_lua_m_socket_url(lua_State* L); 25 | int luaopen_lua_m_socket(lua_State* L); 26 | */ 27 | 28 | #if __cplusplus 29 | } 30 | #endif 31 | 32 | #endif /* __LUA_MODULES_606BA1C00D116CA81B695C141D124DB7_H_ */ 33 | -------------------------------------------------------------------------------- /build/luasocket/select.h: -------------------------------------------------------------------------------- 1 | #ifndef SELECT_H 2 | #define SELECT_H 3 | /*=========================================================================*\ 4 | * Select implementation 5 | * LuaSocket toolkit 6 | * 7 | * Each object that can be passed to the select function has to export 8 | * method getfd() which returns the descriptor to be passed to the 9 | * underlying select function. Another method, dirty(), should return 10 | * true if there is data ready for reading (required for buffered input). 11 | \*=========================================================================*/ 12 | 13 | int select_open(lua_State *L); 14 | 15 | #endif /* SELECT_H */ 16 | -------------------------------------------------------------------------------- /build/luasocket/tcp.h: -------------------------------------------------------------------------------- 1 | #ifndef TCP_H 2 | #define TCP_H 3 | /*=========================================================================*\ 4 | * TCP object 5 | * LuaSocket toolkit 6 | * 7 | * The tcp.h module is basicly a glue that puts together modules buffer.h, 8 | * timeout.h socket.h and inet.h to provide the LuaSocket TCP (AF_INET, 9 | * SOCK_STREAM) support. 10 | * 11 | * Three classes are defined: master, client and server. The master class is 12 | * a newly created tcp object, that has not been bound or connected. Server 13 | * objects are tcp objects bound to some local address. Client objects are 14 | * tcp objects either connected to some address or returned by the accept 15 | * method of a server object. 16 | \*=========================================================================*/ 17 | #include "lua.h" 18 | 19 | #include "buffer.h" 20 | #include "timeout.h" 21 | #include "socket.h" 22 | 23 | typedef struct t_tcp_ { 24 | t_socket sock; 25 | t_io io; 26 | t_buffer buf; 27 | t_timeout tm; 28 | int family; 29 | } t_tcp; 30 | 31 | typedef t_tcp *p_tcp; 32 | 33 | int tcp_open(lua_State *L); 34 | 35 | #endif /* TCP_H */ 36 | -------------------------------------------------------------------------------- /build/luasocket/timeout.h: -------------------------------------------------------------------------------- 1 | #ifndef TIMEOUT_H 2 | #define TIMEOUT_H 3 | /*=========================================================================*\ 4 | * Timeout management functions 5 | * LuaSocket toolkit 6 | \*=========================================================================*/ 7 | #include "lua.h" 8 | 9 | /* timeout control structure */ 10 | typedef struct t_timeout_ { 11 | double block; /* maximum time for blocking calls */ 12 | double total; /* total number of miliseconds for operation */ 13 | double start; /* time of start of operation */ 14 | } t_timeout; 15 | typedef t_timeout *p_timeout; 16 | 17 | int timeout_open(lua_State *L); 18 | void timeout_init(p_timeout tm, double block, double total); 19 | double timeout_get(p_timeout tm); 20 | double timeout_getretry(p_timeout tm); 21 | p_timeout timeout_markstart(p_timeout tm); 22 | double timeout_getstart(p_timeout tm); 23 | double timeout_gettime(void); 24 | int timeout_meth_settimeout(lua_State *L, p_timeout tm); 25 | 26 | #define timeout_iszero(tm) ((tm)->block == 0.0) 27 | 28 | #endif /* TIMEOUT_H */ 29 | -------------------------------------------------------------------------------- /build/luasocket/udp.h: -------------------------------------------------------------------------------- 1 | #ifndef UDP_H 2 | #define UDP_H 3 | /*=========================================================================*\ 4 | * UDP object 5 | * LuaSocket toolkit 6 | * 7 | * The udp.h module provides LuaSocket with support for UDP protocol 8 | * (AF_INET, SOCK_DGRAM). 9 | * 10 | * Two classes are defined: connected and unconnected. UDP objects are 11 | * originally unconnected. They can be "connected" to a given address 12 | * with a call to the setpeername function. The same function can be used to 13 | * break the connection. 14 | \*=========================================================================*/ 15 | #include "lua.h" 16 | 17 | #include "timeout.h" 18 | #include "socket.h" 19 | 20 | /* can't be larger than wsocket.c MAXCHUNK!!! */ 21 | #define UDP_DATAGRAMSIZE 8192 22 | 23 | typedef struct t_udp_ { 24 | t_socket sock; 25 | t_timeout tm; 26 | int family; 27 | } t_udp; 28 | typedef t_udp *p_udp; 29 | 30 | int udp_open(lua_State *L); 31 | 32 | #endif /* UDP_H */ 33 | -------------------------------------------------------------------------------- /build/luasocket/unix.h: -------------------------------------------------------------------------------- 1 | #ifndef UNIX_H 2 | #define UNIX_H 3 | /*=========================================================================*\ 4 | * Unix domain object 5 | * LuaSocket toolkit 6 | * 7 | * This module is just an example of how to extend LuaSocket with a new 8 | * domain. 9 | \*=========================================================================*/ 10 | #include "lua.h" 11 | 12 | #include "buffer.h" 13 | #include "timeout.h" 14 | #include "socket.h" 15 | 16 | #ifndef UNIX_API 17 | #define UNIX_API extern 18 | #endif 19 | 20 | typedef struct t_unix_ { 21 | t_socket sock; 22 | t_io io; 23 | t_buffer buf; 24 | t_timeout tm; 25 | } t_unix; 26 | typedef t_unix *p_unix; 27 | 28 | UNIX_API int luaopen_socket_unix(lua_State *L); 29 | 30 | #endif /* UNIX_H */ 31 | -------------------------------------------------------------------------------- /build/luasocket/wsocket.h: -------------------------------------------------------------------------------- 1 | #ifndef WSOCKET_H 2 | #define WSOCKET_H 3 | /*=========================================================================*\ 4 | * Socket compatibilization module for Win32 5 | * LuaSocket toolkit 6 | \*=========================================================================*/ 7 | 8 | /*=========================================================================*\ 9 | * WinSock include files 10 | \*=========================================================================*/ 11 | #include 12 | #include 13 | 14 | typedef int socklen_t; 15 | typedef SOCKADDR_STORAGE t_sockaddr_storage; 16 | typedef SOCKET t_socket; 17 | typedef t_socket *p_socket; 18 | 19 | #ifndef IPV6_V6ONLY 20 | #define IPV6_V6ONLY 27 21 | #endif 22 | 23 | #define SOCKET_INVALID (INVALID_SOCKET) 24 | 25 | #ifndef SO_REUSEPORT 26 | #define SO_REUSEPORT SO_REUSEADDR 27 | #endif 28 | 29 | #ifndef AI_NUMERICSERV 30 | #define AI_NUMERICSERV (0) 31 | #endif 32 | 33 | #endif /* WSOCKET_H */ 34 | -------------------------------------------------------------------------------- /build/make_android_lua53.sh: -------------------------------------------------------------------------------- 1 | export ANDROID_NDK=~/android-ndk-r10e 2 | 3 | mkdir -p build_v7a && cd build_v7a 4 | cmake -DANDROID_ABI=armeabi-v7a -DCMAKE_TOOLCHAIN_FILE=../cmake/android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-clang3.6 -DANDROID_NATIVE_API_LEVEL=android-9 ../ 5 | cd .. 6 | cmake --build build_v7a --config Release 7 | mkdir -p plugin_lua53/Plugins/Android/libs/armeabi-v7a/ 8 | cp build_v7a/libxlua.so plugin_lua53/Plugins/Android/libs/armeabi-v7a/libxlua.so 9 | 10 | mkdir -p build_x86 && cd build_x86 11 | cmake -DANDROID_ABI=x86 -DCMAKE_TOOLCHAIN_FILE=../cmake/android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME=x86-clang3.5 -DANDROID_NATIVE_API_LEVEL=android-9 ../ 12 | cd .. 13 | cmake --build build_x86 --config Release 14 | mkdir -p plugin_lua53/Plugins/Android/libs/x86/ 15 | cp build_x86/libxlua.so plugin_lua53/Plugins/Android/libs/x86/libxlua.so 16 | 17 | 18 | -------------------------------------------------------------------------------- /build/make_ios_lua53.sh: -------------------------------------------------------------------------------- 1 | mkdir -p build_ios && cd build_ios 2 | cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/iOS.cmake -GXcode ../ 3 | cd .. 4 | cmake --build build_ios --config Release 5 | mkdir -p plugin_lua53/Plugins/iOS/ 6 | cp build_ios/Release-iphoneos/libxlua.a plugin_lua53/Plugins/iOS/libxlua.a 7 | 8 | -------------------------------------------------------------------------------- /build/make_osx_lua53.sh: -------------------------------------------------------------------------------- 1 | mkdir -p build_osx && cd build_osx 2 | cmake -GXcode ../ 3 | cd .. 4 | cmake --build build_osx --config Release 5 | mkdir -p plugin_lua53/Plugins/xlua.bundle/Contents/MacOS/ 6 | cp build_osx/Release/xlua.bundle/Contents/MacOS/xlua plugin_lua53/Plugins/xlua.bundle/Contents/MacOS/xlua 7 | 8 | -------------------------------------------------------------------------------- /build/make_osx_luajit.sh: -------------------------------------------------------------------------------- 1 | mkdir -p build_lj_osx && cd build_lj_osx 2 | cmake -DUSING_LUAJIT=ON -GXcode ../ 3 | cd .. 4 | cmake --build build_lj_osx --config Release 5 | mkdir -p plugin_luajit/Plugins/xlua.bundle/Contents/MacOS/ 6 | cp build_lj_osx/Release/xlua.bundle/Contents/MacOS/xlua plugin_luajit/Plugins/xlua.bundle/Contents/MacOS/xlua 7 | 8 | -------------------------------------------------------------------------------- /build/make_win32_lua53.bat: -------------------------------------------------------------------------------- 1 | mkdir build32 & pushd build32 2 | cmake -G "Visual Studio 14 2015" .. 3 | popd 4 | cmake --build build32 --config Release 5 | md plugin_lua53\Plugins\x86 6 | copy /Y build32\Release\xlua.dll plugin_lua53\Plugins\x86\xlua.dll 7 | pause -------------------------------------------------------------------------------- /build/make_win32_luajit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | if exist "%VS140COMNTOOLS%" ( 3 | set VCVARS="%VS140COMNTOOLS%..\..\VC\bin\" 4 | goto build 5 | ) else (goto missing) 6 | 7 | 8 | :build 9 | 10 | @set ENV32="%VCVARS%vcvars32.bat" 11 | 12 | call "%ENV32%" 13 | 14 | echo Swtich to x86 build env 15 | cd %~dp0\luajit-2.1.0b2\src 16 | call msvcbuild_mt.bat static 17 | cd ..\.. 18 | 19 | goto :buildxlua 20 | 21 | :missing 22 | echo Can't find Visual Studio 2015. 23 | pause 24 | goto :eof 25 | 26 | :buildxlua 27 | mkdir build_lj32 & pushd build_lj32 28 | cmake -DUSING_LUAJIT=ON -G "Visual Studio 14 2015" .. 29 | popd 30 | cmake --build build_lj32 --config Release 31 | md plugin_luajit\Plugins\x86 32 | copy /Y build_lj32\Release\xlua.dll plugin_luajit\Plugins\x86\xlua.dll 33 | pause -------------------------------------------------------------------------------- /build/make_win64_lua53.bat: -------------------------------------------------------------------------------- 1 | mkdir build64 & pushd build64 2 | cmake -G "Visual Studio 14 2015 Win64" .. 3 | popd 4 | cmake --build build64 --config Release 5 | md plugin_lua53\Plugins\x86_64 6 | copy /Y build64\Release\xlua.dll plugin_lua53\Plugins\x86_64\xlua.dll 7 | pause -------------------------------------------------------------------------------- /build/make_win64_luajit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | if exist "%VS140COMNTOOLS%" ( 3 | set VCVARS="%VS140COMNTOOLS%..\..\VC\bin\" 4 | goto build 5 | ) else (goto missing) 6 | 7 | 8 | :build 9 | 10 | @set ENV64="%VCVARS%amd64\vcvars64.bat" 11 | 12 | call "%ENV64%" 13 | 14 | echo Swtich to x64 build env 15 | cd %~dp0\luajit-2.1.0b2\src 16 | call msvcbuild_mt.bat static 17 | cd ..\.. 18 | 19 | goto :buildxlua 20 | 21 | :missing 22 | echo Can't find Visual Studio 2015. 23 | pause 24 | goto :eof 25 | 26 | :buildxlua 27 | mkdir build_lj64 & pushd build_lj64 28 | cmake -DUSING_LUAJIT=ON -G "Visual Studio 14 2015 Win64" .. 29 | popd 30 | cmake --build build_lj64 --config Release 31 | md plugin_luajit\Plugins\x86_64 32 | copy /Y build_lj64\Release\xlua.dll plugin_luajit\Plugins\x86_64\xlua.dll 33 | pause --------------------------------------------------------------------------------