ecs/proto/idl/mod_common.proto

39 lines
1.6 KiB
Protocol Buffer
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
package Pb;
option go_package = "pb/";
// ModId.ModuleCommon: 1
// 公共模块消息定义
// 如果定义的消息内没有字段或者消息被注释掉了,说明该请求不需要参数,发送消息时仅发送包头即可,包体可为空, 返回的消息亦是如此。
// MsgId.ModCommonHeartbeat: 1
// 心跳请求
message HeartbeatReq {
uint32 Index = 1; //序号
}
// MsgId.ModCommonHeartbeat: 1
// 心跳返回
message HeartbeatAck {
uint32 Index = 1; //序号
int64 ServerTime = 2; //服务器时间
}
// MsgId.ModCommonTipNotice: 2
// 提示消息
message TipNoticeAck {
string Message = 1; //提示消息
}
// MsgId.ModCommonGmCommand: 3
// Gm命令请求
// 通用加钱命令money 货币类型见MoneyType {数值/clear} //如money 1 10000 ——经验加1万, clear用于清除货币
// 增加经验命令exp {数值/clear} //如exp 10000 ——经验加1万, clear用于清除货币
// 增加体力命令power {数值/clear} //如power 200 ——体力加200, clear用于清除货币
// 增加银币命令coin {数值/clear} //如coin 200 ——银币加200, clear用于清除货币
// 增加金币命令gold {数值/clear} //如gold 200 ——金币加200, clear用于清除货币
// 增加物品命令item 物品ID {数值/clear}, clear用于清除物品
// 修改计数命令counter 计数器类型见CounterType ID1 ID2 {数值} {true/false} //若只有一个IDID1填0, 最后的bool值表示是否仅修改周期性计数不填为false
message GmCommandReq {
string Command = 1;//命令
}