diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-01 21:40:17 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-01 21:40:17 +0900 |
| commit | 7ccf1da2f7448d93f8209982813e4097af13fd70 (patch) | |
| tree | 1767a3404b19ab277312caccf442e9f88f2fcba1 /backend/game/hub.go | |
| parent | f6443042fbec1bd394439904f3c69e23709f7e6a (diff) | |
| parent | 9baf2a7110ecef0eb97301b179bf5a3ca9e9b774 (diff) | |
| download | phperkaigi-2025-albatross-7ccf1da2f7448d93f8209982813e4097af13fd70.tar.gz phperkaigi-2025-albatross-7ccf1da2f7448d93f8209982813e4097af13fd70.tar.zst phperkaigi-2025-albatross-7ccf1da2f7448d93f8209982813e4097af13fd70.zip | |
Merge branch 'refactor/naming-convention'
Diffstat (limited to 'backend/game/hub.go')
| -rw-r--r-- | backend/game/hub.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/game/hub.go b/backend/game/hub.go index e6981e8..c73009b 100644 --- a/backend/game/hub.go +++ b/backend/game/hub.go @@ -156,14 +156,14 @@ func (hub *gameHub) run() { watcher.s2cMessages <- &watcherMessageS2CCode{ Type: watcherMessageTypeS2CCode, Data: watcherMessageS2CCodePayload{ - PlayerId: message.client.playerID, + PlayerID: message.client.playerID, Code: code, }, } watcher.s2cMessages <- &watcherMessageS2CExecResult{ Type: watcherMessageTypeS2CExecResult, Data: watcherMessageS2CExecResultPayload{ - PlayerId: message.client.playerID, + PlayerID: message.client.playerID, Score: nullable.NewNullableWithValue(score), Stdout: "", Stderr: "", @@ -209,7 +209,7 @@ func (hub *gameHub) startGame() error { Type: playerMessageTypeS2CPrepare, Data: playerMessageS2CPreparePayload{ Problem: api.Problem{ - ProblemId: 1, + ProblemID: 1, Title: "the answer", Description: "print 42", }, |
