// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. package pppf_json import ( json "encoding/json" easyjson "github.com/mailru/easyjson" jlexer "github.com/mailru/easyjson/jlexer" jwriter "github.com/mailru/easyjson/jwriter" ) // suppress unused package warning var ( _ *json.RawMessage _ *jlexer.Lexer _ *jwriter.Writer _ easyjson.Marshaler ) func easyjsonE897284aDecodePppfJson(in *jlexer.Lexer, out *WinCombo) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "winPos": if in.IsNull() { in.Skip() out.WinPos = nil } else { in.Delim('[') if out.WinPos == nil { if !in.IsDelim(']') { out.WinPos = make([]CardPos, 0, 4) } else { out.WinPos = []CardPos{} } } else { out.WinPos = (out.WinPos)[:0] } for !in.IsDelim(']') { var v1 CardPos (v1).UnmarshalEasyJSON(in) out.WinPos = append(out.WinPos, v1) in.WantComma() } in.Delim(']') } case "line": out.Line = int(in.Int()) case "winGold": out.WinGold = float64(in.Float64()) case "mul": out.Mul = int(in.Int()) case "count": out.Count = int(in.Int()) case "jackpot": out.Jackpot = int(in.Int()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonE897284aEncodePppfJson(out *jwriter.Writer, in WinCombo) { out.RawByte('{') first := true _ = first { const prefix string = ",\"winPos\":" out.RawString(prefix[1:]) if in.WinPos == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v2, v3 := range in.WinPos { if v2 > 0 { out.RawByte(',') } (v3).MarshalEasyJSON(out) } out.RawByte(']') } } { const prefix string = ",\"line\":" out.RawString(prefix) out.Int(int(in.Line)) } { const prefix string = ",\"winGold\":" out.RawString(prefix) out.Float64(float64(in.WinGold)) } { const prefix string = ",\"mul\":" out.RawString(prefix) out.Int(int(in.Mul)) } { const prefix string = ",\"count\":" out.RawString(prefix) out.Int(int(in.Count)) } { const prefix string = ",\"jackpot\":" out.RawString(prefix) out.Int(int(in.Jackpot)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v WinCombo) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonE897284aEncodePppfJson(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v WinCombo) MarshalEasyJSON(w *jwriter.Writer) { easyjsonE897284aEncodePppfJson(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *WinCombo) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonE897284aDecodePppfJson(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *WinCombo) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonE897284aDecodePppfJson(l, v) } func easyjsonE897284aDecodePppfJson1(in *jlexer.Lexer, out *ScatterInfo) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "first": if in.IsNull() { in.Skip() } else { in.Delim('{') out.First = make(map[string]int) for !in.IsDelim('}') { key := string(in.String()) in.WantColon() var v4 int v4 = int(in.Int()) (out.First)[key] = v4 in.WantComma() } in.Delim('}') } case "extend": if in.IsNull() { in.Skip() } else { in.Delim('{') out.Extend = make(map[string]int) for !in.IsDelim('}') { key := string(in.String()) in.WantColon() var v5 int v5 = int(in.Int()) (out.Extend)[key] = v5 in.WantComma() } in.Delim('}') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonE897284aEncodePppfJson1(out *jwriter.Writer, in ScatterInfo) { out.RawByte('{') first := true _ = first { const prefix string = ",\"first\":" out.RawString(prefix[1:]) if in.First == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') v6First := true for v6Name, v6Value := range in.First { if v6First { v6First = false } else { out.RawByte(',') } out.String(string(v6Name)) out.RawByte(':') out.Int(int(v6Value)) } out.RawByte('}') } } { const prefix string = ",\"extend\":" out.RawString(prefix) if in.Extend == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') v7First := true for v7Name, v7Value := range in.Extend { if v7First { v7First = false } else { out.RawByte(',') } out.String(string(v7Name)) out.RawByte(':') out.Int(int(v7Value)) } out.RawByte('}') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v ScatterInfo) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonE897284aEncodePppfJson1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ScatterInfo) MarshalEasyJSON(w *jwriter.Writer) { easyjsonE897284aEncodePppfJson1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ScatterInfo) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonE897284aDecodePppfJson1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ScatterInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonE897284aDecodePppfJson1(l, v) } func easyjsonE897284aDecodePppfJson2(in *jlexer.Lexer, out *OddConfig) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "baseBet": out.BaseBet = float64(in.Float64()) case "jackpot": (out.Jackpot).UnmarshalEasyJSON(in) case "odds": if in.IsNull() { in.Skip() } else { in.Delim('{') out.Odds = make(map[int]map[int]int) for !in.IsDelim('}') { key := int(in.IntStr()) in.WantColon() var v8 map[int]int if in.IsNull() { in.Skip() } else { in.Delim('{') v8 = make(map[int]int) for !in.IsDelim('}') { key := int(in.IntStr()) in.WantColon() var v9 int v9 = int(in.Int()) (v8)[key] = v9 in.WantComma() } in.Delim('}') } (out.Odds)[key] = v8 in.WantComma() } in.Delim('}') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonE897284aEncodePppfJson2(out *jwriter.Writer, in OddConfig) { out.RawByte('{') first := true _ = first { const prefix string = ",\"baseBet\":" out.RawString(prefix[1:]) out.Float64(float64(in.BaseBet)) } { const prefix string = ",\"jackpot\":" out.RawString(prefix) (in.Jackpot).MarshalEasyJSON(out) } { const prefix string = ",\"odds\":" out.RawString(prefix) if in.Odds == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') v10First := true for v10Name, v10Value := range in.Odds { if v10First { v10First = false } else { out.RawByte(',') } out.IntStr(int(v10Name)) out.RawByte(':') if v10Value == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') v11First := true for v11Name, v11Value := range v10Value { if v11First { v11First = false } else { out.RawByte(',') } out.IntStr(int(v11Name)) out.RawByte(':') out.Int(int(v11Value)) } out.RawByte('}') } } out.RawByte('}') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v OddConfig) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonE897284aEncodePppfJson2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v OddConfig) MarshalEasyJSON(w *jwriter.Writer) { easyjsonE897284aEncodePppfJson2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *OddConfig) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonE897284aDecodePppfJson2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *OddConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonE897284aDecodePppfJson2(l, v) } func easyjsonE897284aDecodePppfJson3(in *jlexer.Lexer, out *JackpotInfo) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "grand": out.Grand = float64(in.Float64()) case "major": out.Major = float64(in.Float64()) case "minor": out.Minor = float64(in.Float64()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonE897284aEncodePppfJson3(out *jwriter.Writer, in JackpotInfo) { out.RawByte('{') first := true _ = first { const prefix string = ",\"grand\":" out.RawString(prefix[1:]) out.Float64(float64(in.Grand)) } { const prefix string = ",\"major\":" out.RawString(prefix) out.Float64(float64(in.Major)) } { const prefix string = ",\"minor\":" out.RawString(prefix) out.Float64(float64(in.Minor)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v JackpotInfo) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonE897284aEncodePppfJson3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v JackpotInfo) MarshalEasyJSON(w *jwriter.Writer) { easyjsonE897284aEncodePppfJson3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *JackpotInfo) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonE897284aDecodePppfJson3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *JackpotInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonE897284aDecodePppfJson3(l, v) } func easyjsonE897284aDecodePppfJson4(in *jlexer.Lexer, out *ImagesItem) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "cards": if in.IsNull() { in.Skip() out.Cards = nil } else { in.Delim('[') if out.Cards == nil { if !in.IsDelim(']') { out.Cards = make([][]int, 0, 2) } else { out.Cards = [][]int{} } } else { out.Cards = (out.Cards)[:0] } for !in.IsDelim(']') { var v12 []int if in.IsNull() { in.Skip() v12 = nil } else { in.Delim('[') if v12 == nil { if !in.IsDelim(']') { v12 = make([]int, 0, 8) } else { v12 = []int{} } } else { v12 = (v12)[:0] } for !in.IsDelim(']') { var v13 int v13 = int(in.Int()) v12 = append(v12, v13) in.WantComma() } in.Delim(']') } out.Cards = append(out.Cards, v12) in.WantComma() } in.Delim(']') } case "winGold": out.WinGold = float64(in.Float64()) case "tumbleWinGold": out.TumbleWinGold = float64(in.Float64()) case "freeGold": out.FreeGold = float64(in.Float64()) case "freeSpins": out.FreeSpins = int(in.Int()) case "gainedFreeSpins": out.GainedFreeSpins = int(in.Int()) case "wonFreeSpins": out.WonFreeSpins = bool(in.Bool()) case "winCards": if in.IsNull() { in.Skip() out.WinCards = nil } else { in.Delim('[') if out.WinCards == nil { if !in.IsDelim(']') { out.WinCards = make([][]int, 0, 2) } else { out.WinCards = [][]int{} } } else { out.WinCards = (out.WinCards)[:0] } for !in.IsDelim(']') { var v14 []int if in.IsNull() { in.Skip() v14 = nil } else { in.Delim('[') if v14 == nil { if !in.IsDelim(']') { v14 = make([]int, 0, 8) } else { v14 = []int{} } } else { v14 = (v14)[:0] } for !in.IsDelim(']') { var v15 int v15 = int(in.Int()) v14 = append(v14, v15) in.WantComma() } in.Delim(']') } out.WinCards = append(out.WinCards, v14) in.WantComma() } in.Delim(']') } case "mul": out.Mul = int(in.Int()) case "freeMul": out.FreeMul = float64(in.Float64()) case "totalWinGold": out.TotalWinGold = float64(in.Float64()) case "winCombo": if in.IsNull() { in.Skip() out.WinCombo = nil } else { in.Delim('[') if out.WinCombo == nil { if !in.IsDelim(']') { out.WinCombo = make([]WinCombo, 0, 1) } else { out.WinCombo = []WinCombo{} } } else { out.WinCombo = (out.WinCombo)[:0] } for !in.IsDelim(']') { var v16 WinCombo (v16).UnmarshalEasyJSON(in) out.WinCombo = append(out.WinCombo, v16) in.WantComma() } in.Delim(']') } case "maxWin": out.MaxWin = bool(in.Bool()) case "jackpotGold": out.JackpotGold = float64(in.Float64()) case "isFree": out.IsFree = bool(in.Bool()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonE897284aEncodePppfJson4(out *jwriter.Writer, in ImagesItem) { out.RawByte('{') first := true _ = first { const prefix string = ",\"cards\":" out.RawString(prefix[1:]) if in.Cards == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v17, v18 := range in.Cards { if v17 > 0 { out.RawByte(',') } if v18 == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v19, v20 := range v18 { if v19 > 0 { out.RawByte(',') } out.Int(int(v20)) } out.RawByte(']') } } out.RawByte(']') } } { const prefix string = ",\"winGold\":" out.RawString(prefix) out.Float64(float64(in.WinGold)) } { const prefix string = ",\"tumbleWinGold\":" out.RawString(prefix) out.Float64(float64(in.TumbleWinGold)) } { const prefix string = ",\"freeGold\":" out.RawString(prefix) out.Float64(float64(in.FreeGold)) } { const prefix string = ",\"freeSpins\":" out.RawString(prefix) out.Int(int(in.FreeSpins)) } { const prefix string = ",\"gainedFreeSpins\":" out.RawString(prefix) out.Int(int(in.GainedFreeSpins)) } { const prefix string = ",\"wonFreeSpins\":" out.RawString(prefix) out.Bool(bool(in.WonFreeSpins)) } { const prefix string = ",\"winCards\":" out.RawString(prefix) if in.WinCards == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v21, v22 := range in.WinCards { if v21 > 0 { out.RawByte(',') } if v22 == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v23, v24 := range v22 { if v23 > 0 { out.RawByte(',') } out.Int(int(v24)) } out.RawByte(']') } } out.RawByte(']') } } { const prefix string = ",\"mul\":" out.RawString(prefix) out.Int(int(in.Mul)) } { const prefix string = ",\"freeMul\":" out.RawString(prefix) out.Float64(float64(in.FreeMul)) } { const prefix string = ",\"totalWinGold\":" out.RawString(prefix) out.Float64(float64(in.TotalWinGold)) } { const prefix string = ",\"winCombo\":" out.RawString(prefix) if in.WinCombo == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v25, v26 := range in.WinCombo { if v25 > 0 { out.RawByte(',') } (v26).MarshalEasyJSON(out) } out.RawByte(']') } } { const prefix string = ",\"maxWin\":" out.RawString(prefix) out.Bool(bool(in.MaxWin)) } { const prefix string = ",\"jackpotGold\":" out.RawString(prefix) out.Float64(float64(in.JackpotGold)) } { const prefix string = ",\"isFree\":" out.RawString(prefix) out.Bool(bool(in.IsFree)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v ImagesItem) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonE897284aEncodePppfJson4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ImagesItem) MarshalEasyJSON(w *jwriter.Writer) { easyjsonE897284aEncodePppfJson4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ImagesItem) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonE897284aDecodePppfJson4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ImagesItem) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonE897284aDecodePppfJson4(l, v) } func easyjsonE897284aDecodePppfJson5(in *jlexer.Lexer, out *Images) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "si": if in.IsNull() { in.Skip() out.Si = nil } else { in.Delim('[') if out.Si == nil { if !in.IsDelim(']') { out.Si = make([]*ImagesItem, 0, 8) } else { out.Si = []*ImagesItem{} } } else { out.Si = (out.Si)[:0] } for !in.IsDelim(']') { var v27 *ImagesItem if in.IsNull() { in.Skip() v27 = nil } else { if v27 == nil { v27 = new(ImagesItem) } (*v27).UnmarshalEasyJSON(in) } out.Si = append(out.Si, v27) in.WantComma() } in.Delim(']') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonE897284aEncodePppfJson5(out *jwriter.Writer, in Images) { out.RawByte('{') first := true _ = first { const prefix string = ",\"si\":" out.RawString(prefix[1:]) if in.Si == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v28, v29 := range in.Si { if v28 > 0 { out.RawByte(',') } if v29 == nil { out.RawString("null") } else { (*v29).MarshalEasyJSON(out) } } out.RawByte(']') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Images) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonE897284aEncodePppfJson5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Images) MarshalEasyJSON(w *jwriter.Writer) { easyjsonE897284aEncodePppfJson5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Images) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonE897284aDecodePppfJson5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Images) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonE897284aDecodePppfJson5(l, v) } func easyjsonE897284aDecodePppfJson6(in *jlexer.Lexer, out *GameConfig) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "row": out.Row = int(in.Int()) case "col": out.Col = int(in.Int()) case "normalCards": if in.IsNull() { in.Skip() out.NormalCards = nil } else { in.Delim('[') if out.NormalCards == nil { if !in.IsDelim(']') { out.NormalCards = make([]int, 0, 8) } else { out.NormalCards = []int{} } } else { out.NormalCards = (out.NormalCards)[:0] } for !in.IsDelim(']') { var v30 int v30 = int(in.Int()) out.NormalCards = append(out.NormalCards, v30) in.WantComma() } in.Delim(']') } case "goldCards": if in.IsNull() { in.Skip() out.GoldCards = nil } else { in.Delim('[') if out.GoldCards == nil { if !in.IsDelim(']') { out.GoldCards = make([]int, 0, 8) } else { out.GoldCards = []int{} } } else { out.GoldCards = (out.GoldCards)[:0] } for !in.IsDelim(']') { var v31 int v31 = int(in.Int()) out.GoldCards = append(out.GoldCards, v31) in.WantComma() } in.Delim(']') } case "scatterCards": if in.IsNull() { in.Skip() out.ScatterCards = nil } else { in.Delim('[') if out.ScatterCards == nil { if !in.IsDelim(']') { out.ScatterCards = make([]int, 0, 8) } else { out.ScatterCards = []int{} } } else { out.ScatterCards = (out.ScatterCards)[:0] } for !in.IsDelim(']') { var v32 int v32 = int(in.Int()) out.ScatterCards = append(out.ScatterCards, v32) in.WantComma() } in.Delim(']') } case "wildCards": if in.IsNull() { in.Skip() out.WildCards = nil } else { in.Delim('[') if out.WildCards == nil { if !in.IsDelim(']') { out.WildCards = make([]int, 0, 8) } else { out.WildCards = []int{} } } else { out.WildCards = (out.WildCards)[:0] } for !in.IsDelim(']') { var v33 int v33 = int(in.Int()) out.WildCards = append(out.WildCards, v33) in.WantComma() } in.Delim(']') } case "scatter": (out.Scatter).UnmarshalEasyJSON(in) case "wildMul": if in.IsNull() { in.Skip() out.WildMul = nil } else { in.Delim('[') if out.WildMul == nil { if !in.IsDelim(']') { out.WildMul = make([]int, 0, 8) } else { out.WildMul = []int{} } } else { out.WildMul = (out.WildMul)[:0] } for !in.IsDelim(']') { var v34 int v34 = int(in.Int()) out.WildMul = append(out.WildMul, v34) in.WantComma() } in.Delim(']') } case "paylines": if in.IsNull() { in.Skip() out.Paylines = nil } else { in.Delim('[') if out.Paylines == nil { if !in.IsDelim(']') { out.Paylines = make([][]int, 0, 2) } else { out.Paylines = [][]int{} } } else { out.Paylines = (out.Paylines)[:0] } for !in.IsDelim(']') { var v35 []int if in.IsNull() { in.Skip() v35 = nil } else { in.Delim('[') if v35 == nil { if !in.IsDelim(']') { v35 = make([]int, 0, 8) } else { v35 = []int{} } } else { v35 = (v35)[:0] } for !in.IsDelim(']') { var v36 int v36 = int(in.Int()) v35 = append(v35, v36) in.WantComma() } in.Delim(']') } out.Paylines = append(out.Paylines, v35) in.WantComma() } in.Delim(']') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonE897284aEncodePppfJson6(out *jwriter.Writer, in GameConfig) { out.RawByte('{') first := true _ = first { const prefix string = ",\"row\":" out.RawString(prefix[1:]) out.Int(int(in.Row)) } { const prefix string = ",\"col\":" out.RawString(prefix) out.Int(int(in.Col)) } { const prefix string = ",\"normalCards\":" out.RawString(prefix) if in.NormalCards == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v37, v38 := range in.NormalCards { if v37 > 0 { out.RawByte(',') } out.Int(int(v38)) } out.RawByte(']') } } { const prefix string = ",\"goldCards\":" out.RawString(prefix) if in.GoldCards == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v39, v40 := range in.GoldCards { if v39 > 0 { out.RawByte(',') } out.Int(int(v40)) } out.RawByte(']') } } { const prefix string = ",\"scatterCards\":" out.RawString(prefix) if in.ScatterCards == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v41, v42 := range in.ScatterCards { if v41 > 0 { out.RawByte(',') } out.Int(int(v42)) } out.RawByte(']') } } { const prefix string = ",\"wildCards\":" out.RawString(prefix) if in.WildCards == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v43, v44 := range in.WildCards { if v43 > 0 { out.RawByte(',') } out.Int(int(v44)) } out.RawByte(']') } } { const prefix string = ",\"scatter\":" out.RawString(prefix) (in.Scatter).MarshalEasyJSON(out) } { const prefix string = ",\"wildMul\":" out.RawString(prefix) if in.WildMul == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v45, v46 := range in.WildMul { if v45 > 0 { out.RawByte(',') } out.Int(int(v46)) } out.RawByte(']') } } { const prefix string = ",\"paylines\":" out.RawString(prefix) if in.Paylines == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v47, v48 := range in.Paylines { if v47 > 0 { out.RawByte(',') } if v48 == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v49, v50 := range v48 { if v49 > 0 { out.RawByte(',') } out.Int(int(v50)) } out.RawByte(']') } } out.RawByte(']') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v GameConfig) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonE897284aEncodePppfJson6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GameConfig) MarshalEasyJSON(w *jwriter.Writer) { easyjsonE897284aEncodePppfJson6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GameConfig) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonE897284aDecodePppfJson6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GameConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonE897284aDecodePppfJson6(l, v) } func easyjsonE897284aDecodePppfJson7(in *jlexer.Lexer, out *CustomData) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "Tw": out.Tw = float64(in.Float64()) case "Sstw": out.Sstw = float64(in.Float64()) case "SpinImage": if in.IsNull() { in.Skip() out.SpinImage = nil } else { in.Delim('[') if out.SpinImage == nil { if !in.IsDelim(']') { out.SpinImage = make([]*ImagesItem, 0, 8) } else { out.SpinImage = []*ImagesItem{} } } else { out.SpinImage = (out.SpinImage)[:0] } for !in.IsDelim(']') { var v51 *ImagesItem if in.IsNull() { in.Skip() v51 = nil } else { if v51 == nil { v51 = new(ImagesItem) } (*v51).UnmarshalEasyJSON(in) } out.SpinImage = append(out.SpinImage, v51) in.WantComma() } in.Delim(']') } case "scatterNum": out.ScatterNum = int(in.Int()) case "Idx": out.Idx = int(in.Int()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonE897284aEncodePppfJson7(out *jwriter.Writer, in CustomData) { out.RawByte('{') first := true _ = first { const prefix string = ",\"Tw\":" out.RawString(prefix[1:]) out.Float64(float64(in.Tw)) } { const prefix string = ",\"Sstw\":" out.RawString(prefix) out.Float64(float64(in.Sstw)) } { const prefix string = ",\"SpinImage\":" out.RawString(prefix) if in.SpinImage == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v52, v53 := range in.SpinImage { if v52 > 0 { out.RawByte(',') } if v53 == nil { out.RawString("null") } else { (*v53).MarshalEasyJSON(out) } } out.RawByte(']') } } { const prefix string = ",\"scatterNum\":" out.RawString(prefix) out.Int(int(in.ScatterNum)) } { const prefix string = ",\"Idx\":" out.RawString(prefix) out.Int(int(in.Idx)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v CustomData) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonE897284aEncodePppfJson7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CustomData) MarshalEasyJSON(w *jwriter.Writer) { easyjsonE897284aEncodePppfJson7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CustomData) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonE897284aDecodePppfJson7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CustomData) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonE897284aDecodePppfJson7(l, v) } func easyjsonE897284aDecodePppfJson8(in *jlexer.Lexer, out *CardPos) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "x": out.X = int(in.Int()) case "y": out.Y = int(in.Int()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonE897284aEncodePppfJson8(out *jwriter.Writer, in CardPos) { out.RawByte('{') first := true _ = first { const prefix string = ",\"x\":" out.RawString(prefix[1:]) out.Int(int(in.X)) } { const prefix string = ",\"y\":" out.RawString(prefix) out.Int(int(in.Y)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v CardPos) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonE897284aEncodePppfJson8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CardPos) MarshalEasyJSON(w *jwriter.Writer) { easyjsonE897284aEncodePppfJson8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CardPos) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonE897284aDecodePppfJson8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CardPos) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonE897284aDecodePppfJson8(l, v) }