Comments (2)
from iogame.
文档 https://www.yuque.com/iohao/game/ieimzn#Aqc1C
减少协议碎片是指 ioGame 在游戏对外服的协议中,提供了一个公共的 message,用于存放 List 数据。
// pb 对象 list 包装类
message ByteValueList {
// pb 对象 List、pb 对象 Array
repeated bytes values = 1;
}
这样就不需要定义类似你上面的 MsgList 结构了,假如你有 10 个 action 都是需要返回的 List 数据,就可以少定义 10 个 xxxList 的类。
from iogame.
Related Issues (20)
- 对接口数据 加密加压缩 HOT 4
- 前端页面通过websocket.js发送信息后自动关闭 HOT 1
- 广播后怎么获取广播的的数据Message,没有有回调函数啊 HOT 2
- 逻辑服A1如何调用指定的逻辑服B2的方法 HOT 4
- 网关集群部署出现问题 -- 请教: HOT 3
- 游戏对外服 - 自定义编解码 - WebSocketMicroBootstrapFlow HOT 2
- sslHandler创建 HOT 2
- 请教关于心跳超时的疑惑 HOT 2
- com.iohao.game.widget.light.room.CreateRoomInfo.createUserId 类型 HOT 2
- KCP 预计多久可以支持一下 HOT 1
- 关于Proto生成排除属性问题 HOT 3
- 事件总线 元信息的获取方式 HOT 1
- 想加群,购买那个MMO的资料,申请了还没审核 HOT 1
- gradle 生成文档无法生成子路由问题 HOT 2
- 通过ClientRunOne方式模拟玩家行为,希望提供一些新的属性或者监听器去触发自定义逻辑 HOT 4
- 业务框架配置 - 关于 action HOT 8
- 在centos环境下运行jar包发生Create connection failed错误 HOT 4
- 心跳钩子被多次执行 HOT 8
- 新增 - 属性值变更监听特性 HOT 1
- 模拟玩家请求时 - 从游戏对外服中获取在线玩家相关数据 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iogame.