1
This commit is contained in:
parent
839ecb8bd9
commit
fcdeb03d01
@ -149,6 +149,7 @@ type Player interface {
|
||||
SetSortIdx(int32)
|
||||
IsBattling() bool
|
||||
SetBattling(bool)
|
||||
HasLuckySymbol() int32
|
||||
GenNextCopy() Player
|
||||
GetBattleItems() []*BattleItem
|
||||
}
|
||||
|
@ -188,6 +188,10 @@ func (this *player) SetSortIdx(sortIdx int32) {
|
||||
this.sortIdx = sortIdx
|
||||
}
|
||||
|
||||
func (this *player) HasLuckySymbol() int32 {
|
||||
return this.hasLuckySymbol
|
||||
}
|
||||
|
||||
func (this *player) GenNextCopy() common.Player {
|
||||
nextCopy := newPlayer()
|
||||
//nextCopy.socket
|
||||
|
@ -385,6 +385,7 @@ func (this *team) genStartGameInfo() {
|
||||
HeroUniId string `json:"hero_uniid"`
|
||||
IsAndroid int32 `json:"is_android"`
|
||||
RobotId int32 `json:"robot_id"`
|
||||
HasLuckySymbol int32 `json:"has_lucky_symbol"`
|
||||
BattleItems []*common.BattleItem `json:"battle_items"`
|
||||
} `json:"members"`
|
||||
} `json:"team_list"`
|
||||
@ -437,6 +438,7 @@ func (this *team) genStartGameInfo() {
|
||||
ele2.AccountId = m.GetAccountId()
|
||||
ele2.SpecSkill = m.GetSpecSkill()
|
||||
ele2.HeroUniId = m.GetHeroUniid()
|
||||
ele2.HasLuckySymbol = m.HasLuckySymbol()
|
||||
ele2.BattleItems = m.GetBattleItems()
|
||||
GetHistoryMgr().AddBattle(m.GetAccountId(),
|
||||
this.mapInfo.MapId,
|
||||
|
Loading…
x
Reference in New Issue
Block a user