mirror of
https://github.com/zoffline/zwift-offline.git
synced 2026-08-03 01:15:46 -07:00
Added syntax="proto2"
Added package.json to transpile protobuf vscode
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"name": "zoffline",
|
||||
"description": "zoffline",
|
||||
"scripts": {
|
||||
"protobuf:build": "protoc --python_out=. ./protobuf/activity.proto"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
syntax = "proto2";
|
||||
message Activity {
|
||||
optional uint64 id = 1;
|
||||
required uint64 player_id = 2;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
syntax = "proto2";
|
||||
message Goal {
|
||||
optional uint64 id = 1;
|
||||
optional uint64 player_id = 2;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
syntax = "proto2";
|
||||
message HashSeed {
|
||||
required uint64 seed1 = 1;
|
||||
required uint64 seed2 = 2;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
syntax = "proto2";
|
||||
/* XXX: This is a first approximation of login response. Not looked into or verified. */
|
||||
|
||||
message UDPNode {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
syntax = "proto2";
|
||||
message PerSessionInfo {
|
||||
required string relay_url = 1;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
syntax = "proto2";
|
||||
message PeriodicInfo {
|
||||
required string game_server_ip = 1;
|
||||
optional uint32 f2 = 2;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
syntax = "proto2";
|
||||
message Profile {
|
||||
optional int64 id = 1;
|
||||
optional int32 is_connected_to_strava = 2;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
syntax = "proto2";
|
||||
message SegmentResult {
|
||||
optional uint64 id = 1;
|
||||
required uint64 player_id = 2;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
syntax = "proto2";
|
||||
////////////////////////////////////////
|
||||
// Initial TCP response below
|
||||
////////////////////////////////////////
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
syntax = "proto2";
|
||||
message PlayerState {
|
||||
optional int32 id = 1;
|
||||
optional int64 worldTime = 2;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
syntax = "proto2";
|
||||
message World {
|
||||
required uint32 id = 1;
|
||||
required string name = 2;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
syntax = "proto2";
|
||||
message ZFile {
|
||||
required uint64 id = 1;
|
||||
required string folder = 2;
|
||||
|
||||
Reference in New Issue
Block a user