Created
November 10, 2021 16:42
-
-
Save Hkazanci93/e3d740536a9ca439aafd04b023ddeb23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
package pizzatribes; | |
option go_package = "github.com/fnatte/pizza-tribes/internal/models"; | |
import "education.proto"; | |
import "building.proto"; | |
import "research.proto"; | |
message ClientMessage { | |
message Tap { | |
string lotId = 1; | |
} | |
message ConstructBuilding { | |
string lotId = 1; | |
Building building = 2; | |
} | |
message UpgradeBuilding { | |
string lotId = 1; | |
} | |
message RazeBuilding { | |
string lotId = 1; | |
} | |
message CancelRazeBuilding { | |
string lotId = 1; | |
} | |
message Train { | |
Education education = 1; | |
int32 amount = 2; | |
} | |
message Expand { | |
} | |
message Steal { | |
int32 amount = 1; | |
int32 x = 2; | |
int32 y = 3; | |
} | |
message ReadReport { | |
string id = 1; | |
} | |
message StartResearch { | |
ResearchDiscovery discovery = 1; | |
} | |
string id = 1; | |
oneof type { | |
Tap tap = 2; | |
ConstructBuilding constructBuilding = 3; | |
UpgradeBuilding upgradeBuilding = 4; | |
Train train = 5; | |
Expand expand = 6; | |
Steal steal = 7; | |
ReadReport readReport = 8; | |
RazeBuilding razeBuilding = 9; | |
StartResearch startResearch = 10; | |
CancelRazeBuilding cancelRazeBuilding = 11; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment