棋盘数据优化
This commit is contained in:
parent
7adabb96b1
commit
1d4fce204e
@ -84,6 +84,24 @@ func (cb *ChessBorad) InitData() {
|
||||
cb.ChessBag.List[i] = ChessBagGrid{}
|
||||
}
|
||||
}
|
||||
if cb.RetireReward == nil {
|
||||
cb.RetireReward = make(map[string]bool)
|
||||
}
|
||||
if cb.PartBag.List == nil {
|
||||
cb.PartBag.List = make(map[int]PartBagGrid)
|
||||
}
|
||||
if cb.ChessMap == nil {
|
||||
cb.ChessMap = make(map[string]int32)
|
||||
}
|
||||
if cb.RetireChessMap == nil {
|
||||
cb.RetireChessMap = make(map[string][]int)
|
||||
}
|
||||
if cb.Retire == nil {
|
||||
cb.Retire = make(map[string]int)
|
||||
}
|
||||
if cb.Honor == nil {
|
||||
cb.Honor = make(map[int]int)
|
||||
}
|
||||
}
|
||||
|
||||
func (cb *ChessBorad) ver() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user