game

package
v0.0.0-...-4c61dc2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGameServer

func NewGameServer()

NewGameServer ...

Types

type Game

type Game struct {
	Server    *server.Service
	Cache     *cache.GameCache
	IGameRule igame.IGameRule
}

Game ...

func (*Game) CheckGameType

func (g *Game) CheckGameType(clientGameTypeID string) bool

CheckGameType ...

func (*Game) CheckToken

func (g *Game) CheckToken(token string) bool

CheckToken ...

func (*Game) GetUser

func (g *Game) GetUser(userToken string) (*user.Info, error)

GetUser ...

func (*Game) GetUserByGameID

func (g *Game) GetUserByGameID(userToken string, UserID int64) (*user.Info, error)

GetUserByGameID ...

func (*Game) NewUser

func (g *Game) NewUser(token, gameAccount string) *user.Info

NewUser ...

func (*Game) RESTfulURLs

func (g *Game) RESTfulURLs() []restfult.Setting

RESTfulURLs ...

func (*Game) SocketMessageHandle

func (g *Game) SocketMessageHandle(msg socket.Message) error

SocketMessageHandle ...

func (*Game) SocketURLs

func (g *Game) SocketURLs() []socket.Setting

SocketURLs ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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