This commit is contained in:
2026-10-23 00:45:30 +07:00
parent 60119a07e8
commit 146700cf4c
34 changed files with 622 additions and 124 deletions
+44 -4
View File
@@ -5369,6 +5369,8 @@ type Game struct {
Format string `protobuf:"bytes,10,opt,name=format,proto3" json:"format,omitempty"`
Location string `protobuf:"bytes,11,opt,name=location,proto3" json:"location,omitempty"`
Export *GameExport `protobuf:"bytes,12,opt,name=export,proto3" json:"export,omitempty"`
WifiName string `protobuf:"bytes,13,opt,name=wifi_name,json=wifiName,proto3" json:"wifi_name,omitempty"` // Management settings only.
WifiPassword string `protobuf:"bytes,14,opt,name=wifi_password,json=wifiPassword,proto3" json:"wifi_password,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -5487,6 +5489,20 @@ func (x *Game) GetExport() *GameExport {
return nil
}
func (x *Game) GetWifiName() string {
if x != nil {
return x.WifiName
}
return ""
}
func (x *Game) GetWifiPassword() string {
if x != nil {
return x.WifiPassword
}
return ""
}
// Download ready ZIP through the authenticated streaming HTTP route:
// GET /api/games/{ID}/export/download (not an HttpBody RPC).
type GameExport struct {
@@ -9428,6 +9444,8 @@ type UpdateGameReq struct {
ScenarioID int32 `protobuf:"varint,5,opt,name=scenarioID,proto3" json:"scenarioID,omitempty"`
Format string `protobuf:"bytes,6,opt,name=format,proto3" json:"format,omitempty"`
Location string `protobuf:"bytes,7,opt,name=location,proto3" json:"location,omitempty"`
WifiName *string `protobuf:"bytes,8,opt,name=wifi_name,json=wifiName,proto3,oneof" json:"wifi_name,omitempty"`
WifiPassword *string `protobuf:"bytes,9,opt,name=wifi_password,json=wifiPassword,proto3,oneof" json:"wifi_password,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -9511,6 +9529,20 @@ func (x *UpdateGameReq) GetLocation() string {
return ""
}
func (x *UpdateGameReq) GetWifiName() string {
if x != nil && x.WifiName != nil {
return *x.WifiName
}
return ""
}
func (x *UpdateGameReq) GetWifiPassword() string {
if x != nil && x.WifiPassword != nil {
return *x.WifiPassword
}
return ""
}
type UpdateGameRsp struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
@@ -13370,7 +13402,7 @@ const file_main_proto_rawDesc = "" +
"\x02ID\x18\x01 \x01(\x05R\x02ID\"\r\n" +
"\vGetGamesReq\"I\n" +
"\vGetGamesRsp\x12:\n" +
"\x05games\x18\x01 \x03(\v2$.crabs.evening_detective_server.GameR\x05games\"\xad\x04\n" +
"\x05games\x18\x01 \x03(\v2$.crabs.evening_detective_server.GameR\x05games\"\xef\x04\n" +
"\x04Game\x12\x0e\n" +
"\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
@@ -13385,7 +13417,9 @@ const file_main_proto_rawDesc = "" +
"\x06format\x18\n" +
" \x01(\tR\x06format\x12\x1a\n" +
"\blocation\x18\v \x01(\tR\blocation\x12B\n" +
"\x06export\x18\f \x01(\v2*.crabs.evening_detective_server.GameExportR\x06exportB\r\n" +
"\x06export\x18\f \x01(\v2*.crabs.evening_detective_server.GameExportR\x06export\x12\x1b\n" +
"\twifi_name\x18\r \x01(\tR\bwifiName\x12#\n" +
"\rwifi_password\x18\x0e \x01(\tR\fwifiPasswordB\r\n" +
"\v_started_atB\v\n" +
"\t_ended_at\"\x96\x01\n" +
"\n" +
@@ -13666,7 +13700,7 @@ const file_main_proto_rawDesc = "" +
"\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x16\n" +
"\x06status\x18\x02 \x01(\tR\x06status\"[\n" +
"\x15ModerateGameReviewRsp\x12B\n" +
"\x06review\x18\x01 \x01(\v2*.crabs.evening_detective_server.GameReviewR\x06review\"\xe0\x01\n" +
"\x06review\x18\x01 \x01(\v2*.crabs.evening_detective_server.GameReviewR\x06review\"\xcc\x02\n" +
"\rUpdateGameReq\x12\x0e\n" +
"\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
@@ -13676,7 +13710,12 @@ const file_main_proto_rawDesc = "" +
"scenarioID\x18\x05 \x01(\x05R\n" +
"scenarioID\x12\x16\n" +
"\x06format\x18\x06 \x01(\tR\x06format\x12\x1a\n" +
"\blocation\x18\a \x01(\tR\blocation\"\x0f\n" +
"\blocation\x18\a \x01(\tR\blocation\x12 \n" +
"\twifi_name\x18\b \x01(\tH\x00R\bwifiName\x88\x01\x01\x12(\n" +
"\rwifi_password\x18\t \x01(\tH\x01R\fwifiPassword\x88\x01\x01B\f\n" +
"\n" +
"_wifi_nameB\x10\n" +
"\x0e_wifi_password\"\x0f\n" +
"\rUpdateGameRsp\"\x1e\n" +
"\fStartGameReq\x12\x0e\n" +
"\x02ID\x18\x01 \x01(\x05R\x02ID\"\x0e\n" +
@@ -14875,6 +14914,7 @@ func file_main_proto_init() {
file_main_proto_msgTypes[74].OneofWrappers = []any{}
file_main_proto_msgTypes[106].OneofWrappers = []any{}
file_main_proto_msgTypes[114].OneofWrappers = []any{}
file_main_proto_msgTypes[176].OneofWrappers = []any{}
file_main_proto_msgTypes[209].OneofWrappers = []any{}
file_main_proto_msgTypes[220].OneofWrappers = []any{}
file_main_proto_msgTypes[221].OneofWrappers = []any{}