gamechannel

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	Type  ActivityType
	From  uuid.UUID
	Value interface{}
}

type ActivityType

type ActivityType int
const (
	SetName ActivityType = iota
	SetRoleset
	Reconnect
	Start
	Vote
	NightAction
	Quit
	ResetGame
	Awoo
)

type GameChannel

type GameChannel chan *Activity

GameChannel provides a way for the players to communicate to the game. It is a one-way communication.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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