7 Star 40 Fork 12

xiyoo0812 / quanta

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

quanta

概述

一个基于lua的分布式游戏服务器引擎框架!

优势

  • 轻量级
  • 简单、易上手
  • 稳定性强
  • 扩展性强
  • 热更新

编译

  • msvc : 打开项目目录下的sln工程文件,编译即可。
  • linux:在项目根目录,执行make all。
  • 编译lua需要readline,请提前安装。
  • http模块依赖curl,请提前安装。

工程

  • 本项目使用lmake管理
  • 根目录配置lmake
--lmake
--工程名
SOLUTION = "quanta"
--lmake目录
LMAKE_DIR = "extend/lmake"
--mimalloc
MIMALLOC = false
  • 子项目配置*.lmake
  • 执行以下指令自动生成项目文件(makefile/vcxproj)
# lmake_dir: lmake项目路径
# solution_dir: 工程根目录
./lua lmake_dir/lmake.lua solution_dir

体验引擎

  • 配置 在bin/config目录下,仿造quanta.conf生成配置实例,然后在bin目录执行configure.bat/configure.sh,会自动生成项目配置
#linux
#需要加参数配置文件名
configure.sh quanta
#windows
configure.bat
#然后输入配置文件名
#>>quanta
  • 执行 可以bin下的quanta.bat/quanta.sh, test.bat/test.sh体验
#linux
quanta.sh
#windows
quanta.bat

基础服务

  • router: quanta框架采用星形结构,router提供路由服务。
  • test: 测试组件,提供基本给你测试的服务
  • dbsvr: 提供基础的数据库访问服务。
  • proxy: 提供基础的http访问服务。
  • cachesvr: 提供基础的数据缓存服务。
  • monitor: 提供基于httpserver服务,以及服务启停、监控的服务。

依赖

  • lua
  • lbson
  • lcurl
  • ljson
  • luabus
  • lcrypt
  • lstdfs
  • luakit
  • lualog
  • lcodec
  • luaxlsx
  • lua-protobuf

数据库支持

  • mongo
  • mysql
  • redis
  • clickhouse

支持功能

  • protobuf协议支持
  • json协议支持
  • http服务器支持
  • http客户端访问
  • websocket支持
  • excel(xlsx/xlsm)配置导出
  • tcp服务器/客户端支持
  • rpc调用机制支持
  • 协议加密和压缩功能支持
  • ai功能支持
  • 文件系统支持
  • 异步日志功能支持
  • lua面向对象机制支持
  • 性能/流量统计支持
  • 游戏数据缓存机制支持
  • 脚本文件加密机制支持
  • 游戏逻辑/配置热更新机制支持
  • 协程调用框架
  • 游戏GM功能框架
  • 基于行为树的机器人测试框架
  • 星型分布式服务器框架

辅助工具

  • GMWeb工具
  • 协议测试Web工具
  • redis服务发现系统
  • zipkin/jager调用链系统
  • dingding/wechat/lark等webhook通知
MIT License Copyright (c) 2021 帘卷西风 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

A Game Server Engine based on Lua! 展开 收起
C/C++ 等 6 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C/C++
1
https://gitee.com/xiyoo0812/quanta.git
git@gitee.com:xiyoo0812/quanta.git
xiyoo0812
quanta
quanta
master

搜索帮助

14c37bed 8189591 565d56ea 8189591