server

package
v0.0.0-...-a7e05d3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameServer

type GameServer struct {
	proto.UnimplementedGameServer
	// contains filtered or unexported fields
}

GameServer is used to stream game information with clients.

func NewGameServer

func NewGameServer(game *backend.Game, password string) *GameServer

NewGameServer constructs a new game server struct.

func (*GameServer) Connect

func (*GameServer) Stream

func (s *GameServer) Stream(srv proto.Game_StreamServer) error

Stream is the main loop for dealing with individual players.

Jump to

Keyboard shortcuts

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