Documentation
¶
Index ¶
- func SetWinRange(winRange []int)
- type Cache
- func (s2 *Cache) AddFeature(name string, feature *Feature, isRespin bool)
- func (s2 *Cache) GetFeature(name string) *Feature
- func (s2 *Cache) HasFeature(name string) bool
- func (s2 *Cache) OnStepEnd(respinArr []string)
- func (s2 *Cache) ProcStatsForeachTrigger(name string, runtimes int, wins int64)
- func (s2 *Cache) ProcStatsIntVal(name string, val int)
- func (s2 *Cache) ProcStatsOnEnding(win int64, rngs []int)
- func (s2 *Cache) ProcStatsRespinTrigger(name string, isRunning bool, wins int64, isEnding bool)
- func (s2 *Cache) ProcStatsStrVal(name string, val string)
- func (s2 *Cache) ProcStatsTrigger(name string)
- func (s2 *Cache) ProcStatsWins(name string, win int64)
- type Feature
- type Option
- type Options
- type Stats
- func (s2 *Stats) AddFeature(name string, feature *Feature)
- func (s2 *Stats) ExportExcel() ([]byte, error)
- func (s2 *Stats) GetRunTimes(name string) int64
- func (s2 *Stats) Merge(src *Stats)
- func (s2 *Stats) PushBet(bet int)
- func (s2 *Stats) PushCache(cache *Cache)
- func (s2 *Stats) SaveExcel(fn string) error
- func (s2 *Stats) Start()
- func (s2 *Stats) ToJson() string
- func (s2 *Stats) WaitEnding()
- type StatsIntVal
- type StatsRootTrigger
- type StatsStrVal
- type StatsTrigger
- type StatsWins
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetWinRange ¶ added in v0.13.330
func SetWinRange(winRange []int)
Types ¶
type Cache ¶ added in v0.13.99
type Cache struct { MapStats map[string]*Feature Bet int TotalWin int64 RespinArr []string // contains filtered or unexported fields }
func (*Cache) AddFeature ¶ added in v0.13.99
func (*Cache) GetFeature ¶ added in v0.13.99
func (*Cache) HasFeature ¶ added in v0.13.99
func (*Cache) ProcStatsForeachTrigger ¶ added in v0.13.115
func (*Cache) ProcStatsIntVal ¶ added in v0.13.334
func (*Cache) ProcStatsOnEnding ¶ added in v0.13.115
func (*Cache) ProcStatsRespinTrigger ¶ added in v0.13.318
func (*Cache) ProcStatsStrVal ¶ added in v0.13.407
func (*Cache) ProcStatsTrigger ¶ added in v0.13.99
func (*Cache) ProcStatsWins ¶ added in v0.13.99
type Feature ¶
type Feature struct { Parent string `json:"parent"` RootTrigger *StatsRootTrigger `json:"rootTrigger"` // 只有respin和foreach才需要这个 Trigger *StatsTrigger `json:"trigger"` // 普通的trigger,如果在respin或foreach下面,则需要配合它们才能得到正确的统计 Wins *StatsWins `json:"wins"` // wins IntVal *StatsIntVal `json:"intVal"` // intVal StrVal *StatsStrVal `json:"strVal"` // strVal }
func NewFeature ¶
type Stats ¶
type Stats struct { MapStats map[string]*Feature `json:"mapStats"` TotalBet int64 `json:"totalBet"` TotalWins int64 `json:"totalWins"` BetTimes int64 `json:"betTimes"` MaxWins int64 `json:"maxWins"` MaxWinTimes int64 `json:"maxWinTimes"` MaxWinRNGs []int `json:"maxWinRNGs"` BetEndingTimes int64 `json:"-"` Components []string `json:"components"` Wins *StatsWins `json:"wins"` // contains filtered or unexported fields }
func (*Stats) AddFeature ¶
func (*Stats) ExportExcel ¶ added in v0.13.107
func (*Stats) GetRunTimes ¶ added in v0.13.99
func (*Stats) WaitEnding ¶
func (s2 *Stats) WaitEnding()
type StatsIntVal ¶ added in v0.13.334
type StatsIntVal struct { TotalUsedTimes int64 `json:"totalUsedTimes"` MapUsedTimes map[int]int64 `json:"mapUsedTimes"` }
func NewStatsIntVal ¶ added in v0.13.334
func NewStatsIntVal() *StatsIntVal
func (*StatsIntVal) Merge ¶ added in v0.13.334
func (intVal *StatsIntVal) Merge(src *StatsIntVal)
func (*StatsIntVal) SaveSheet ¶ added in v0.13.334
func (intVal *StatsIntVal) SaveSheet(f *excelize.File, sheet string, s2 *Stats)
func (*StatsIntVal) UseVal ¶ added in v0.13.334
func (intVal *StatsIntVal) UseVal(val int)
type StatsRootTrigger ¶ added in v0.13.99
type StatsRootTrigger struct { RunTimes int64 `json:"runTimes"` TriggerTimes int64 `json:"triggerTimes"` TotalWins int64 `json:"totalWins"` Wins *StatsWins `json:"wins"` CurWins int64 `json:"-"` IsStarted bool `json:"-"` }
func NewStatsRootTrigger ¶ added in v0.13.103
func NewStatsRootTrigger() *StatsRootTrigger
func (*StatsRootTrigger) Merge ¶ added in v0.13.99
func (trigger *StatsRootTrigger) Merge(src *StatsRootTrigger)
type StatsStrVal ¶ added in v0.13.407
type StatsStrVal struct { TotalUsedTimes int64 `json:"totalUsedTimes"` MapUsedTimes map[string]int64 `json:"mapUsedTimes"` }
func NewStatsStrVal ¶ added in v0.13.407
func NewStatsStrVal() *StatsStrVal
func (*StatsStrVal) Merge ¶ added in v0.13.407
func (strVal *StatsStrVal) Merge(src *StatsStrVal)
func (*StatsStrVal) SaveSheet ¶ added in v0.13.407
func (strVal *StatsStrVal) SaveSheet(f *excelize.File, sheet string, s2 *Stats)
func (*StatsStrVal) UseVal ¶ added in v0.13.407
func (strVal *StatsStrVal) UseVal(val string)
type StatsTrigger ¶
type StatsTrigger struct {
TriggerTimes int64 `json:"triggerTimes"`
}
func NewStatsTrigger ¶ added in v0.13.103
func NewStatsTrigger() *StatsTrigger
func (*StatsTrigger) Merge ¶
func (trigger *StatsTrigger) Merge(src *StatsTrigger)
type StatsWins ¶
type StatsWins struct { TotalWin int64 `json:"totalWin"` MapWinTimes map[int]int64 `json:"mapWinTimes"` MapWinTimesEx map[string]int64 `json:"MapWinTimesEx"` MapWinEx map[string]int64 `json:"MapWinEx"` SD float64 }
func NewStatsWins ¶ added in v0.13.103
func NewStatsWins() *StatsWins
Click to show internal directories.
Click to hide internal directories.