1234567891011121314151617181920212223242526272829303132333435363738 |
- syntax = "proto2";
- package vip.metadev.module.battle.protobuf;
- option java_outer_classname = "EnterStoryRequestProto";
- option java_multiple_files = false;
- // 导入消息类型枚举
- import "ws_message_types.proto";
- // 导入公共消息定义
- import "ws_common_request.proto";
- import "ws_common_response.proto";
- // 进入闯关模式请求消息
- message EnterStoryRequest {
- optional WsMessageType message_id = 1 [default = ENTRY_STORY_GAME]; // 消息类型,使用枚举,默认为进入游戏
- optional int32 story_id = 2 ; //关卡id
- optional bool battle_over = 3 [default = false]; // 是否结束战斗 true 结束
- optional bool success= 4 [default = false]; // 是否通关 true 通关
- repeated CommonRequest envelope = 5; // 公共必传参数集
- }
- message EntryStoryResponse{
- optional int32 story_id=1; //关卡id
- optional int32 battle_status=2; //战斗状态:0-进行中,1-胜利,2-失败
- repeated StoryAwardItemVo story_award_items=3; //多个道具
- repeated StoryAwardItemVo box_award_items=4; //宝箱奖励
- }
- message StoryAwardItemVo{
- optional int32 item_id=1; //道具id
- optional int32 quantity=2; //数量
- }
|