DELETE: print out user events
This commit is contained in:
parent
aaf2641d80
commit
b597ec529e
@ -39,6 +39,15 @@ func main() {
|
|||||||
ui := client.NewSpectator(c.Width, c.Height)
|
ui := client.NewSpectator(c.Width, c.Height)
|
||||||
c.Player = ui
|
c.Player = ui
|
||||||
|
|
||||||
|
go func() {
|
||||||
|
if ui.User == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
for e := range ui.User {
|
||||||
|
fmt.Printf("%+v\n", e)
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
if err := c.Play(); err != nil {
|
if err := c.Play(); err != nil {
|
||||||
close(ui.Die)
|
close(ui.Die)
|
||||||
|
Loading…
Reference in New Issue
Block a user