game

package
v0.0.0-...-d3f1ebf Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndConnection

func EndConnection(s *session.Session) (IfEndStream bool)

func GetSesionFromContext

func GetSesionFromContext(c context.Context) *session.Session

func HandleRPCError

func HandleRPCError(s *session.Session, e error) (IfEndStream bool)

func IgnoreError

func IgnoreError(s *session.Session) (IfEndStream bool)

func ReconnectError

func ReconnectError(s *session.Session) (IfEndStream bool)

func RecordError

func RecordError(s *session.Session, e error) (IfEndStream bool)

Types

type ATGServer

type ATGServer struct {
}

func (*ATGServer) AquireGameRoom

func (g *ATGServer) AquireGameRoom(c context.Context, gc *GameCreation) (*PemKey, error)

func (*ATGServer) DeletGameRoom

func (g *ATGServer) DeletGameRoom(c context.Context, info *RoomInfo) (*Success, error)

type CTGServer

type CTGServer struct {
}

func (*CTGServer) Pipe

func (g *CTGServer) Pipe(ClientToGame_PipeServer) error

func (*CTGServer) PlayerInput

func (g *CTGServer) PlayerInput(stream ClientToGame_PlayerInputServer) error

func (*CTGServer) TimeCalibrate

func (g *CTGServer) TimeCalibrate(c context.Context, e *Empty) (*TimeStamp, error)

func (*CTGServer) UpdateGameFrame

func (g *CTGServer) UpdateGameFrame(e *Empty, stream ClientToGame_UpdateGameFrameServer) error

Directories

Path Synopsis
Command go-heightmap provides a basic Square Diamond heightmap / terrain generator.
Command go-heightmap provides a basic Square Diamond heightmap / terrain generator.

Jump to

Keyboard shortcuts

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