aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-11 20:50:11 +0900
committernsfisis <nsfisis@gmail.com>2024-08-11 20:53:02 +0900
commit0c448f5d403a084389acb0b3d215f8728a599302 (patch)
tree37528798ede5a89b1a7be6c6ee2fec20395668a2 /backend
parent6d37bdd6b2f5272cacaace60cfd14e0847b0096a (diff)
downloadiosdc-japan-2025-albatross-0c448f5d403a084389acb0b3d215f8728a599302.tar.gz
iosdc-japan-2025-albatross-0c448f5d403a084389acb0b3d215f8728a599302.tar.zst
iosdc-japan-2025-albatross-0c448f5d403a084389acb0b3d215f8728a599302.zip
feat(backend): remove `prepare` message's payload
Diffstat (limited to 'backend')
-rw-r--r--backend/api/generated.go65
-rw-r--r--backend/game/hub.go7
-rw-r--r--backend/game/message.go1
3 files changed, 29 insertions, 44 deletions
diff --git a/backend/api/generated.go b/backend/api/generated.go
index d93953f..a68b13b 100644
--- a/backend/api/generated.go
+++ b/backend/api/generated.go
@@ -157,13 +157,7 @@ type GamePlayerMessageS2CExecResultPayloadStatus string
// GamePlayerMessageS2CPrepare defines model for GamePlayerMessageS2CPrepare.
type GamePlayerMessageS2CPrepare struct {
- Data GamePlayerMessageS2CPreparePayload `json:"data"`
- Type string `json:"type"`
-}
-
-// GamePlayerMessageS2CPreparePayload defines model for GamePlayerMessageS2CPreparePayload.
-type GamePlayerMessageS2CPreparePayload struct {
- Problem Problem `json:"problem"`
+ Type string `json:"type"`
}
// GamePlayerMessageS2CStart defines model for GamePlayerMessageS2CStart.
@@ -1209,35 +1203,34 @@ func (sh *strictHandler) GetToken(ctx echo.Context, params GetTokenParams) error
// Base64 encoded, gzipped, json marshaled Swagger object
var swaggerSpec = []string{
- "H4sIAAAAAAAC/9xaX2/bNhD/Kho3oBugxY4TFJ3f0qzNOnRdULfbQxEYtHS2mUmkSlJxvEDffeAfW6JE",
- "W7KjdEX7UMQW7+53dz/yjj49oIilGaNApUDjB5R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Ei/UGQmE/D4tUDh6KhVneltSechq2yjm/lXgCDnTLvCfTnRJ9YUL8xTKsJc7bJbY/knApcQUqwAVg",
+ "TQnKF7amp1x6mHDNpXprjtjggFQvuV2wHJmPFEu54iKuvUcovj0dnflqqoAFkarY3Cr+D9Ta/H3tn0/H",
+ "I/sM29wQBXw/M9wf8uS9MnmX3yeV/9vnUKOkC60ndnabZ5SuA01ZYEpD3bD2YKo7PNRTTWDJZ3i4dW5X",
+ "QfpgDnyNXeabyoutD3LJhfqZkjuIA2zMBRZgnuf5fwEAAP//BG0AaWEnAAA=",
}
// GetSwagger returns the content of the embedded swagger specification file
diff --git a/backend/game/hub.go b/backend/game/hub.go
index 23fdd0d..b454bb5 100644
--- a/backend/game/hub.go
+++ b/backend/game/hub.go
@@ -611,13 +611,6 @@ func (hub *gameHub) startGame() error {
for player := range hub.players {
player.s2cMessages <- &playerMessageS2CPrepare{
Type: playerMessageTypeS2CPrepare,
- Data: playerMessageS2CPreparePayload{
- Problem: api.Problem{
- ProblemID: 1,
- Title: "the answer",
- Description: "print 42",
- },
- },
}
}
diff --git a/backend/game/message.go b/backend/game/message.go
index 1fb30cb..2895119 100644
--- a/backend/game/message.go
+++ b/backend/game/message.go
@@ -24,7 +24,6 @@ type playerMessageC2SWithClient struct {
type playerMessageS2C = interface{}
type playerMessageS2CPrepare = api.GamePlayerMessageS2CPrepare
-type playerMessageS2CPreparePayload = api.GamePlayerMessageS2CPreparePayload
type playerMessageS2CStart = api.GamePlayerMessageS2CStart
type playerMessageS2CStartPayload = api.GamePlayerMessageS2CStartPayload
type playerMessageS2CExecResult = api.GamePlayerMessageS2CExecResult