Documentation
¶
Index ¶
- func SaveConfig(fn string, cfg any, 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
- func BuildIntValWeights2Arr(vws []*sgc7game.ValWeights2) *WeightsArr
- func BuildWeightsArr(weights [][]int) *WeightsArr
- func BuildWeightsArrEx(vals []int, weights [][]int) *WeightsArr
- func BuildWeightsArrEx2(vals [][]int, weights [][]int) *WeightsArr
- func BuildWeightsArrEx3(vws []*sgc7game.ValWeights) *WeightsArr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveConfig ¶
func SaveConfig(fn string, cfg any, procSelfCloseTags FuncOnSelfCloseTags) error
Types ¶
type Config ¶
type Config struct {
XMLName xml.Name `xml:"config"`
GeneralComment string `xml:",comment"`
SD float32 `xml:"sd"`
ID int `xml:"id"`
Name string `xml:"name"`
ConfigVersion string `xml:"configVersion"`
RTPsComment string `xml:",comment"`
RTPs *FloatList `xml:"rtp"`
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"`
}
func BuildInt2DArray ¶
func BuildInt2DArray(arr2 [][]int) *Int2DArray
func BuildInt2DArrayEx ¶
func BuildInt2DArrayEx(avw *sgc7game.ArrValWeights) *Int2DArray
func BuildIntArrValMapping ¶ added in v0.10.357
func BuildIntArrValMapping(avw *sgc7game.ValMapping2) *Int2DArray
func BuildLineData ¶
func BuildLineData(ld *sgc7game.LineData) *Int2DArray
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 BuildIntValWeights2 ¶ added in v0.10.356
func BuildIntValWeights2(vw *sgc7game.ValWeights2) *Weights
func BuildWeights ¶
func BuildWeightsEx ¶
func BuildWeightsEx2 ¶
func BuildWeightsEx2(vw *sgc7game.ValWeights) *Weights
type WeightsArr ¶
type WeightsArr struct {
Weights []*Weights `xml:"weights"`
}
func BuildIntValWeights2Arr ¶ added in v0.10.355
func BuildIntValWeights2Arr(vws []*sgc7game.ValWeights2) *WeightsArr
func BuildWeightsArr ¶
func BuildWeightsArr(weights [][]int) *WeightsArr
func BuildWeightsArrEx ¶
func BuildWeightsArrEx(vals []int, weights [][]int) *WeightsArr
func BuildWeightsArrEx2 ¶
func BuildWeightsArrEx2(vals [][]int, weights [][]int) *WeightsArr
func BuildWeightsArrEx3 ¶
func BuildWeightsArrEx3(vws []*sgc7game.ValWeights) *WeightsArr
Click to show internal directories.
Click to hide internal directories.