Documentation ¶
Index ¶
- func SaveConfig(fn string, cfg interface{}, procSelfCloseTags FuncOnSelfCloseTags) error
- type Config
- type FloatList
- type FuncOnSelfCloseTags
- type Int2DArray
- type Int3DArray
- type IntList
- type Payout
- type PayoutWin
- type Payouts
- type Reels
- type StringList
- type Symbol
- type Symbols
- type Table
- type Weights
- type WeightsArr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveConfig ¶
func SaveConfig(fn string, cfg interface{}, procSelfCloseTags FuncOnSelfCloseTags) error
Types ¶
type Config ¶
type Config struct { XMLName xml.Name `xml:"config"` GeneralComment string `xml:",comment"` SD float32 `xml:"sd"` RTP float32 `xml:"rtp"` ID int `xml:"id"` Name string `xml:"name"` ConfigVersion string `xml:"configVersion"` RTPsComment string `xml:",comment"` RTPs *FloatList `xml:"rtps"` ConfigComment string `xml:",comment"` Symbols *Symbols `xml:"symbols"` Wilds *StringList `xml:"wilds"` Payouts *Payouts `xml:"payouts"` PayingSymbols *StringList `xml:"payingSymbols"` }
type FuncOnSelfCloseTags ¶
type Int2DArray ¶
type Int2DArray struct {
Rows []*IntList `xml:"row"`
}
type Int3DArray ¶
type Int3DArray struct {
Tables []*Int2DArray `xml:"tbl"`
}
func BuildInt3DArray ¶
func BuildInt3DArray(lst []*sgc7game.ReelsPosData) *Int3DArray
type Payouts ¶
func BuildPayouts ¶
type StringList ¶
type StringList struct {
Vals []string `xml:"item"`
}
type Symbols ¶
func BuildSymbols ¶
type Table ¶
type Table struct { XMLName xml.Name `xml:"table"` TableComment string `xml:",comment"` Reel []*StringList `xml:"reel"` }
type Weights ¶
type Weights struct {
Entries []*IntList `xml:"entry"`
}
func BuildWeights ¶
func BuildWeightsEx ¶
type WeightsArr ¶
type WeightsArr struct {
Weights []*Weights `xml:"weights"`
}
func BuildWeightsArr ¶
func BuildWeightsArr(weights [][]int) *WeightsArr
func BuildWeightsArrEx ¶
func BuildWeightsArrEx(vals []int, weights [][]int) *WeightsArr
Click to show internal directories.
Click to hide internal directories.