igame

package
Version: v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: GPL-3.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IGame

type IGame interface {
	RESTfulURLs() []restfult.Setting
	SocketURLs() []socket.Setting
	// GetUser(userToken string) (*user.Info, error)
	// GetUserByGameID(userToken string, UserID int64) (*user.Info, error)
	CheckToken(userToken string) error
}

IGame ...

type IRule

type IRule interface {
	GetBetMoney(index int64) int64
	GetGameIndex() int64
	GetGameTypeID() string
	GameRequest(*RuleRequest) *RuleRespond
	CheckGameType(userGameTypeID string) bool
	GetBetSetting() map[string]interface{}
}

IRule ...

type ISlotRule

type ISlotRule interface {
	IRule
	GetReel() map[string][][]int
}

ISlotRule ...

type RuleRequest

type RuleRequest struct {
	Attach   *attach.IAttach // copy data
	BetIndex int64
	UserID   int64
}

RuleRequest game logic request params

type RuleRespond

type RuleRespond struct {
	Attach        []*attach.Info
	BetMoney      int64
	Totalwinscore int64
	GameResult    map[string]interface{}
	OtherData     map[string]interface{}
}

RuleRespond game logic respond params

Source Files

Jump to

Keyboard shortcuts

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