diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-07-30 20:27:40 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:33 +0200 |
| commit | deaee56c8a5ac7f40ca9fe85afcb5a3caddea0ca (patch) | |
| tree | b09281e2d5124921fa53aab8be1acb53dbd0e970 /go/game/playerControl.go | |
| parent | 84d69cf805e1b998768a5a340f0388cf68307ff2 (diff) | |
| download | muhqs-game-deaee56c8a5ac7f40ca9fe85afcb5a3caddea0ca.tar.gz muhqs-game-deaee56c8a5ac7f40ca9fe85afcb5a3caddea0ca.zip | |
make format
Diffstat (limited to 'go/game/playerControl.go')
| -rw-r--r-- | go/game/playerControl.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/go/game/playerControl.go b/go/game/playerControl.go index 74af6702..3972cc8e 100644 --- a/go/game/playerControl.go +++ b/go/game/playerControl.go @@ -251,9 +251,11 @@ func (c *ChanPlayerControl) SendAction(a Action) error { c.actions <- a return nil } + func (c *ChanPlayerControl) RecvAction() (Action, error) { return <-c.actions, nil } + func (c *ChanPlayerControl) SendNotification(n PlayerNotification) error { c.notifications <- n return nil @@ -267,6 +269,7 @@ func (c *ChanPlayerControl) RecvNotification() (PlayerNotification, error) { } return n, nil } + func (c *ChanPlayerControl) Close() { close(c.actions) close(c.notifications) |
