Giter Site home page Giter Site logo

richfuns / xlua-framework Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smilehao/xlua-framework

0.0 2.0 0.0 112.88 MB

Unity游戏纯lua客户端完整框架---基于xlua,整合tolua的proto-gen-lua以及各个lua库和工具类

C# 16.19% ShaderLab 0.02% Lua 5.27% C++ 45.43% Smalltalk 0.02% Batchfile 0.04% Java 9.77% Python 13.60% XSLT 0.85% Makefile 3.48% Shell 4.65% M4 0.31% Vim Script 0.03% Emacs Lisp 0.05% CMake 0.13% C 0.17%

xlua-framework's Introduction

xlua-framework

Unity游戏纯lua客户端完整框架---基于xlua,整合tolua的proto-gen-lua以及各个lua库和工具类 -  ---未完成,持续更新中...

XLua框架设计文档

目录

一.总体设计 4

1.1 概述	4
1.2 工程目录	4
1.3 游戏启动流程	9

二.Lua简介 10

2.1 lua设计语言简介	10
2.2 XLua简介	10
2.3 Unity侧功能的Lua实现	13
2.3 Lua通用扩展工具类	15
2.4 Lua面向对象程序设计	16
2.5 Lua数据表和常量表	20
2.6 Lua单例类	21

三.UI管理模块 23

3.1 脚本目录结构	23
3.2 UI模块添加流程	23
3.3 UI框架总体设计	23
3.4 组件系统	25
3.5层级管理	28
3.6 窗口记录栈	29

四.协程管理 31

4.1概述	31
4.2 协程操作	31
4.3 技术要点	34
4.4 其它说明	35

五.定时器管理 36

5.1 概述	36
5.2 驱动原理	36

六.资源管理模块 37

6.1 概述	37
6.2 AssetBundle设计概要	37
6.3 AssetBundle加载机制	38
6.4 AssetBundle打包机制	39
6.5 AssetBundle编辑器工具	42
6.6 热更新流程	53
6.7 资源预加载	57
6.8 资源缓存池	57

七.场景管理模块 59

7.1 概述	59
7.2 工作流程	59
7.3 技术要点	59

八.网络管理模块 62

8.1 概述	62
8.2 Protobuf协议	62
8.3 工作流程	63
8.4 其它说明	64

九.配置表 65

9.1 概述	65
9.2 xlsx gen lua	65
9.3 proto gen lua	65

十.XLua工作流 66

10.1 Lua脚本分类	66
10.2 XLua热修复	67
10.3 XLua动态库构建	68
10.4 XLua第三方库集成	72
10.5 XLua升级	73

十一.其它说明 75

11.1 资料和链接	75
11.2 Git地址	75
11.3 其它	76

xlua-framework's People

Contributors

smilehao avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.