tcp-node-msgs.proto 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. syntax = "proto2";
  2. enum SocialPlayerActionType {
  3. SOCIAL_ACTION_UNKNOWN_TYPE = 0;
  4. SOCIAL_TEXT_MESSAGE = 1;
  5. SOCIAL_RIDE_ON = 2;
  6. SOCIAL_FLAG = 3;
  7. }
  8. enum FlagType {
  9. FLAG_TYPE_UNKNOWN = 0;
  10. FLAG_TYPE_HARASSMENT = 1;
  11. FLAG_TYPE_FLIER = 2;
  12. FLAG_TYPE_BAD_LANGUAGE = 3;
  13. }
  14. enum MessageGroupType {
  15. MGT_UNKNOWN = 0;
  16. MGT_GLOBAL = 1;
  17. MGT_DIRECT = 2;
  18. MGT_EVENT = 3;
  19. MGT_CLUB = 4;
  20. }
  21. message SocialPlayerAction {
  22. optional int64 player_id = 1;
  23. optional int64 to_player_id = 2; // 0 if public message
  24. optional SocialPlayerActionType spa_type = 3;
  25. optional string firstName = 4;
  26. optional string lastName = 5;
  27. optional string message = 6;
  28. optional string avatar = 7;
  29. optional int32 countryCode = 8;
  30. optional FlagType flagType = 9;
  31. optional MessageGroupType mgType = 10;
  32. optional int64 eventSubgroup = 11;
  33. }
  34. /*message MobileAlertResponse {
  35. optional int64 f1 = 1;
  36. optional int64 f2 = 2;
  37. }
  38. message BLEPeripheralCharacteristic {
  39. optional string f1 = 1;
  40. optional bytes f2 = 2;
  41. }*/
  42. //TODO: PeripheralResponseType UNKNOWN_RESPONSE_TYPE(0), PERIPHERAL_ERROR(1), CHARACTERISTIC_VALUE(2), PERIPHERAL_CONNECTED(3), PERIPHERAL_DISCONNECTED(4), PERIPHERAL_DISCOVERED(5);
  43. // PeripheralErrorType UNKNOWN_ERROR(0), PERMISSION_DENIED(1), BLE_UNSUPPORTED(2), BLE_POWERED_OFF(3);
  44. /*message BLEPeripheralResponse {
  45. optional uint32 f1 = 1;
  46. optional uint32 f2 = 2;
  47. optional string f3 = 3;
  48. optional BLEPeripheral f4 = 4;
  49. optional BLEPeripheralCharacteristic f5 = 5;
  50. }*/
  51. /*TODO: UNKNOWN(0), FLAGS(1), INCOMPLETE_UUIDS_16_BIT(2), COMPLETE_UUIDS_16_BIT(3), INCOMPLETE_UUIDS_32_BIT(4),
  52. COMPLETE_UUIDS_32_BIT(5), INCOMPLETE_UUIDS_128_BIT(6), COMPLETE_UUIDS_128_BIT(7), SHORTENED_LOCAL_NAME(8),
  53. COMPLETE_LOCAL_NAME(9), TX_POWER_LEVEL(10), CLASS_OF_DEVICE(13), SIMPLE_PAIRING_HASH(14), SIMPLE_PAIRING_RANDOMIZER(15),
  54. DEVICE_ID(16), SECURITY_MANAGER_OOB_FLAGS(17), SLAVE_CONNECTION_INTERVAL(18), SOLICITATION_UUIDS_16_BIT(20),
  55. SOLICITATION_UUIDS_128_BIT(21), SERVICE_DATA_16_BIT(22), PUBLIC_TARGET_ADDRESS(23), RANDOM_TARGET_ADDRESS(24),
  56. APPEARANCE(25), ADVERTISING_INTERVAL(26), LE_BLUETOOTH_DEVICE_ADDRESS(27), LE_ROLE(28), SIMPLE_PAIRING_HASH_C256(29),
  57. SIMPLE_PAIRING_RANDOMIZER_R256(30), SOLICITATION_UUIDS_32_BIT(31), SERVICE_DATA_32_BIT(32), SERVICE_DATA_128_BIT(33),
  58. LE_SECURE_CONFIRMATION_VALUE(34), LE_SECURE_RANDOM_VALUE(35), URI(36), INDOOR_POSITIONING(37), TRANSPORT_DISCOVERY_DATA(38),
  59. LE_SUPPORTED_FEATURES(39), CHANNEL_MAP_UPDATE_INDICATION(40), PB_ADV(41), MESH_MESSAGE(42), MESH_BEACON(43), BIG_INFO(44),
  60. BROADCAST_CODE(45), INFORMATION_DATA_3D(61), MANUFACTURER_DATA(255); */
  61. /*message BLEAdvertisementDataSection {
  62. optional int32 f1 = 1;
  63. optional bytes f2 = 2;
  64. }
  65. message BLEPeripheral {
  66. optional string f1 = 1;
  67. optional string f2 = 2;
  68. optional int32 f3 = 3;
  69. }*/
  70. /*TODO: CONNECTABLE_UNDIRECTED(0), CONNECTABLE_DIRECTED(1), SCANNABLE_UNDIRECTED(2), NON_CONNECTABLE_UNDIRECTED(3),
  71. SCAN_RESPONSE(4), EXTENDED(5); */
  72. /*message BLEAdvertisement {
  73. optional BLEPeripheral f1 = 1;
  74. repeated BLEAdvertisementDataSection f2 = 2;
  75. optional int32 f3 = 3;
  76. }
  77. message PhoneToGameCommand {
  78. required int32 seqno = 1;
  79. required uint32 command = 2;
  80. optional int64 f3 = 3;
  81. optional string f4 = 4;
  82. optional int64 f5 = 5;
  83. optional string f6 = 6;
  84. optional int64 f7 = 7;
  85. optional int32 f8 = 8;
  86. optional uint32 f9 = 9;
  87. required uint32 command_copy = 10;
  88. optional SocialPlayerAction f11 = 11;
  89. // no 12
  90. optional MobileAlertResponse f13 = 13;
  91. // no 14-17
  92. optional BLEPeripheralResponse f18 = 18;
  93. optional int64 f19 = 19;
  94. optional string f20 = 20;
  95. optional bytes f21 = 21;
  96. optional BLEAdvertisement f22 = 22;
  97. }
  98. message PhoneToGame {
  99. required int64 player_id = 1;
  100. repeated PhoneToGameCommand command = 2;
  101. optional float f3 = 3;
  102. optional float f4 = 4;
  103. optional float f5 = 5;
  104. optional float f6 = 6;
  105. optional float f7 = 7;
  106. optional float f8 = 8;
  107. optional double f9 = 9;
  108. optional int32 f10 = 10;
  109. }*/