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