player

package
v0.0.0-...-80078d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

type Player struct {
	Name     string
	Ws       *websocket.Conn
	User     *httpauth.UserData
	Kibitzer bool
	Bot      bool
}

Player contains information about a player and how to communicate with them

func NewPlayer

func NewPlayer(c *websocket.Conn, name string, user *httpauth.UserData, kibitzer bool, bot bool) *Player

NewPlayer will create a new player (or kibitzer) for a pao server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL