├── .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 |
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 |