23 lines
629 B
Plaintext
23 lines
629 B
Plaintext
{{define "gpb"}}
|
|
// Code generated by xlsx2proto.
|
|
// DO NOT EDIT!
|
|
syntax = "proto3";
|
|
package server;
|
|
option go_package = "mongo.games.com/game/protocol/server";
|
|
{{ $a := . }}{{ range $a }}{{ $elem := . }}
|
|
message {{$elem.ProtoName}} {
|
|
{{ range $index, $col := $elem.Cols }}{{if $col.IsArray }}
|
|
repeated {{$col.CTString}} {{$col.ColName}} = {{ inc $index }};
|
|
{{else if $col.IsMap }}
|
|
map<{{"int64"}}, {{"int64"}}> {{$col.ColName}} = {{ inc $index }};
|
|
{{else}}
|
|
{{$col.CTString}} {{$col.ColName}} = {{ inc $index }};
|
|
{{end}}{{end}}
|
|
}
|
|
|
|
message {{$elem.ProtoName}}Array {
|
|
repeated {{$elem.ProtoName}} Arr = 1;
|
|
}
|
|
{{end}}
|
|
{{end}}
|