package pv import ( axis_parser "ppfl/frame/parser" frame_type "ppfl/frame/type" ) // PublicPV 是一个包级别的公共变量 var PublicPV *PV type PV struct { AxleConfig []*frame_type.AxleConfig CardsConfig []*frame_type.Card ScatterConfig []*frame_type.ScatterConfigItem WildCardsList []int ScatterCardsList []int CardIdList []int Weight int // 配置权重 } func InitPV(axleConfig []*frame_type.AxleConfig, cardsConfig []*frame_type.Card, scatterConfig []*frame_type.ScatterConfigItem) *PV { PublicPV = &PV{ AxleConfig: axleConfig, CardsConfig: cardsConfig, ScatterConfig: scatterConfig, WildCardsList: axis_parser.GetWildCardId(cardsConfig), ScatterCardsList: axis_parser.GetScatterCardId(cardsConfig), CardIdList: axis_parser.GetCardIdList(cardsConfig), } return PublicPV }