world.proto 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. syntax = "proto2";
  2. import "profile.proto"; //enums PlayerType and Sport
  3. message DropInWorld {
  4. required uint64 id = 1;
  5. optional string name = 2;
  6. optional uint64 course_id = 3;
  7. optional bool f4 = 4;
  8. optional uint64 zwifters = 5;
  9. optional uint64 world_time = 6;
  10. optional uint64 real_time = 7;
  11. repeated DropInPlayer pro_players = 8;
  12. repeated DropInPlayer followees = 9;
  13. repeated DropInPlayer others = 10;
  14. optional uint64 max_zwifters = 11; //stored as int32
  15. repeated DropInPlayer pacer_bots = 12;
  16. }
  17. message DropInWorldList {
  18. repeated DropInWorld worlds = 1;
  19. }
  20. message DropInPlayer {
  21. required uint64 id = 1;
  22. required string firstName = 2;
  23. required string lastName = 3;
  24. optional uint64 distance = 4;
  25. optional uint64 time = 5;
  26. optional uint64 country_code = 6;
  27. optional PlayerType player_type = 7;
  28. optional Sport sport = 8;
  29. optional bool f9 = 9;
  30. optional bool f10 = 10;
  31. optional uint64 f11 = 11;
  32. optional uint64 power = 12;
  33. optional uint64 f13 = 13;
  34. optional float x = 14;
  35. optional float y_altitude = 15;
  36. optional float z = 16;
  37. optional int32 route = 17;
  38. optional uint32 ride_power = 18;
  39. optional uint32 speed = 19;
  40. }
  41. message TeleportTargets {
  42. repeated DropInPlayer pacer_groups = 1;
  43. repeated DropInPlayer friends = 2;
  44. }