You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
481 B

  1. syntax="proto3"; //Proto协议
  2. package pb; //当前包名
  3. option csharp_namespace="Pb"; //给C#提供的选项
  4. //同步客户端玩家ID
  5. message SyncPid{
  6. int32 Pid=1;
  7. }
  8. //玩家位置
  9. message Position{
  10. float X=1;
  11. float Y=2;
  12. float Z=3;
  13. float V=4;
  14. }
  15. //玩家广播数据
  16. message BroadCast{
  17. int32 Pid=1;
  18. int32 Tp=2;
  19. oneof Data {
  20. string Content=3;
  21. Position P=4;
  22. int32 ActionData=5;
  23. }
  24. }