game_example_protocol.proto 437 B

1234567891011121314
  1. package game_example_protocols;
  2. import "game_example_def.proto";
  3. //游戏开始
  4. message packetc2l_game_play {
  5. optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_game_play];
  6. optional int32 select = 2 [default = 0];//选择大小 0小 1大
  7. }
  8. //游戏返回
  9. message packetl2c_game_play_result {
  10. optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_game_play_result];
  11. optional int32 random = 2;//随机值 1-6
  12. }