loaction and appdata added

This commit is contained in:
ycc
2023-08-01 22:47:18 +02:00
parent 71df3a792b
commit 9d5ba42dfc
3 changed files with 207 additions and 70 deletions

View File

@ -1,3 +1,9 @@
// You should use the field numbers 1 through 15
// for the most-frequently-set fields.
// Lower field number values take less space in the wire format.
// For example, field numbers in the range 1 through 15 take one byte to encode.
// Field numbers in the range 16 through 2047 take two bytes.
syntax = "proto3";
package meowlib;
option go_package = "forge.redroom.link/yves/meowlib";
@ -126,6 +132,10 @@ message UserMessage {
Group group = 8;
repeated File files = 9;
Location currentLocation = 10;
bytes appdata = 11;
}
message File {
@ -133,4 +143,11 @@ message File {
uint64 size=2;
uint32 chunk=3;
bytes data=4;
}
message Location {
uint64 time=1;
float latitude=2;
float longitude=3;
int32 altitude=4;
}

View File

@ -3,4 +3,4 @@ protoc -I=. --go_out=.. messages.proto
mv ../forge.redroom.link/yves/meowlib/messages.pb.go ../
rm -rf ../forge.redroom.link
protoc -I=. --dart_out=../../../flutter/meowlib/lib/ messages.proto
#protoc -I=. --dart_out=../../../flutter/meowlib/lib/ messages.proto