Documentation ¶
Index ¶
- Constants
- func InitGameMod(node *RTPNode, tags []string, funcTag []FuncOnResult, symbols []int, ...)
- func InitGameModTag(node *RTPNode, tag string, symbols []int, nums []int)
- func InitSymbol(node *RTPNode, tag string, symbol int, nums []int)
- func OnGameModResult(node *RTPNode, pr *sgc7game.PlayResult) bool
- func OnRootResult(node *RTPNode, pr *sgc7game.PlayResult) bool
- func OnSymbolNumsResult(node *RTPNode, pr *sgc7game.PlayResult) bool
- func OnSymbolResult(node *RTPNode, pr *sgc7game.PlayResult) bool
- func StartRTP(game sgc7game.IGame, rtp *RTP, worknums int, spinnums int64, ...) time.Duration
- type FuncHROnResult
- type FuncOnRTPTimer
- type FuncOnResult
- type HitRateNode
- type RTP
- type RTPNode
- func (node *RTPNode) Add(node1 *RTPNode)
- func (node *RTPNode) AddChild(name string, c *RTPNode)
- func (node *RTPNode) CalcRTP(totalbet int64)
- func (node *RTPNode) ChgSymbolNumsFunc(funcOnResult FuncOnResult)
- func (node *RTPNode) Clone() *RTPNode
- func (node *RTPNode) GenGameModString(gamemod string, sn []int, totalbet int64) string
- func (node *RTPNode) GenRootString(sn []int, totalbet int64) string
- func (node *RTPNode) GenSymbolString(gamemod string, tag string, symbol int, sn []int, totalbet int64) string
- func (node *RTPNode) GenTagString(gamemod string, tag string, sn []int, totalbet int64) string
- func (node *RTPNode) GetGameMods(arr []string) []string
- func (node *RTPNode) GetSymbolNums(arr []int) []int
- func (node *RTPNode) GetSymbolNumsWon(gamemod string, tag string, symbol int, sn int) int64
- func (node *RTPNode) GetSymbols(arr []int) []int
- func (node *RTPNode) GetTags(arr []string, gamemod string) []string
- func (node *RTPNode) OnResult(pr *sgc7game.PlayResult)
Constants ¶
View Source
const ( // RTPNodeRoot - root RTPNodeRoot = 0 // RTPNodeGameMod - gamemod RTPNodeGameMod = 1 // RTPNodeTag - tag RTPNodeTag = 2 // RTPNodeSymbol - symbol RTPNodeSymbol = 3 // RTPNodeSymbolNums - symbol nums RTPNodeSymbolNums = 4 )
Variables ¶
This section is empty.
Functions ¶
func InitGameMod ¶
func InitGameMod(node *RTPNode, tags []string, funcTag []FuncOnResult, symbols []int, nums []int)
InitGameMod - new RTPNode
func InitGameModTag ¶
InitGameModTag - new RTPNode
func InitSymbol ¶
InitSymbol - new RTPNode
func OnGameModResult ¶
func OnGameModResult(node *RTPNode, pr *sgc7game.PlayResult) bool
OnGameModResult - on gamemod
func OnRootResult ¶
func OnRootResult(node *RTPNode, pr *sgc7game.PlayResult) bool
OnRootResult - on root
func OnSymbolNumsResult ¶
func OnSymbolNumsResult(node *RTPNode, pr *sgc7game.PlayResult) bool
OnSymbolNumsResult - on symbol nums
func OnSymbolResult ¶
func OnSymbolResult(node *RTPNode, pr *sgc7game.PlayResult) bool
OnSymbolResult - on symbol
Types ¶
type FuncHROnResult ¶
type FuncHROnResult func(node *HitRateNode, pr *sgc7game.PlayResult) bool
FuncHROnResult - onResult(*HitRateNode, *sgc7game.PlayResult)
type FuncOnRTPTimer ¶
FuncOnRTPTimer - on timer for rtp
type FuncOnResult ¶
type FuncOnResult func(node *RTPNode, pr *sgc7game.PlayResult) bool
FuncOnResult - onResult(*RTPNode, *sgc7game.PlayResult)
type HitRateNode ¶
type HitRateNode struct { TagName string BetNums int64 TriggerNums int64 TotalNums int64 FuncOnResult FuncHROnResult }
HitRateNode -
func NewSpecialHitRate ¶
func NewSpecialHitRate(tag string, funcOnResult FuncHROnResult) *HitRateNode
NewSpecialHitRate - new HitRateNode
type RTP ¶
type RTP struct { BetNums int64 TotalBet int64 Root *RTPNode MapHR map[string]*HitRateNode }
RTP -
func (*RTP) AddHitRateNode ¶
func (rtp *RTP) AddHitRateNode(tag string, funcOnResult FuncHROnResult)
AddHitRateNode -
type RTPNode ¶
type RTPNode struct { NodeType int TriggerNums int64 TotalWin int64 RTP float64 MapChildren map[string]*RTPNode GameMod string Symbol int SymbolNums int TagName string FuncOnResult FuncOnResult }
RTPNode -
func NewRTPGameModTag ¶
func NewRTPGameModTag(gamemod string, tag string, funcTag FuncOnResult) *RTPNode
NewRTPGameModTag - new RTPNode
func NewRTPSymbol ¶
NewRTPSymbol - new RTPNode
func NewRTPSymbolNums ¶
NewRTPSymbolNums - new RTPNode
func (*RTPNode) ChgSymbolNumsFunc ¶
func (node *RTPNode) ChgSymbolNumsFunc(funcOnResult FuncOnResult)
ChgSymbolNumsFunc -
func (*RTPNode) GenGameModString ¶
GenGameModString -
func (*RTPNode) GenRootString ¶
GenRootString -
func (*RTPNode) GenSymbolString ¶
func (node *RTPNode) GenSymbolString(gamemod string, tag string, symbol int, sn []int, totalbet int64) string
GenSymbolString -
func (*RTPNode) GenTagString ¶
GenTagString -
func (*RTPNode) GetSymbolNumsWon ¶
GetSymbolNumsWon -
Click to show internal directories.
Click to hide internal directories.