diff options
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) |
