From e476451958c1f4791887442a5e83b70b9bace81b Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 13 May 2020 12:54:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B9=BF=E5=91=8A=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/constant.h | 1 + server/tools/protobuild/cs_proto.proto | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/server/gameserver/constant.h b/server/gameserver/constant.h index 519aa6b..d134acd 100755 --- a/server/gameserver/constant.h +++ b/server/gameserver/constant.h @@ -120,6 +120,7 @@ enum BuffEffectType_e kBET_Car = 3, //骑乘 kBET_Invincible = 4, //无敌 kBET_Camouflage = 5, //伪装 + kBET_AdPlaying = 6, //看广告中 kBET_OnceChgAttr = 11, //一次性buff kBET_End }; diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index a8519ae..5e1c2ea 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -762,13 +762,26 @@ message CMLeave //复活死亡后15秒内,如果超过15秒服务器发SMGameOver message CMRevive { - } //取消复活 message CMCancelRevive { +} +//开始播放广告(服务器收到消息后会添加一个看广告中的buff) +message CMAdStart +{ +} + +//取消看广告(用户中途取消看广告) +message CMAdCancel +{ +} + +//广告播放完毕(玩家看完广告) +message CMAdEnd +{ } //endcmmsg