playroom优化
This commit is contained in:
parent
e4cb8bfd5e
commit
eadb885126
@ -89,6 +89,7 @@ func PlayroomBackData(p *Player) {
|
||||
r.Jackpot = int32(PlayroomMod.JackpotNum)
|
||||
r.Upvote = int32(PlayroomMod.Upvote)
|
||||
r.RoomPoint = int32(PlayroomMod.RoomPoint)
|
||||
r.Unlock = PlayroomMod.GetUnlockIds()
|
||||
r.DailyTaskReward = GoUtil.IntToInt32(PlayroomMod.DailyTaskReward)
|
||||
r.DailyTask = PlayroomMod.BackDataTask()
|
||||
p.PushClientRes(r)
|
||||
|
||||
@ -793,6 +793,14 @@ func (p *PlayroomMod) Unlock(Id int) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *PlayroomMod) GetUnlockIds() []int32 {
|
||||
UnlockIds := make([]int32, 0)
|
||||
for k := range p.UnlockList {
|
||||
UnlockIds = append(UnlockIds, int32(k))
|
||||
}
|
||||
return UnlockIds
|
||||
}
|
||||
|
||||
func (p *PlayroomMod) GetDressSet() map[int]int {
|
||||
return p.DressSet
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user