| | |
| | | import PlayerOnline
|
| | | import PlayerTask
|
| | | import GameWorld
|
| | | import ObjPool
|
| | |
|
| | | import time
|
| | |
|
| | |
| | | return
|
| | |
|
| | | def SyncHorseClassInfo(curPlayer):
|
| | | clientPack = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagSCHorseClassInfo)
|
| | | clientPack = ChPyNetSendPack.tagSCHorseClassInfo()
|
| | | clientPack.ClassLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_HorseClassLV)
|
| | | clientPack.HorseLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_HorseLV)
|
| | | clientPack.Exp = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_HorseExp)
|
| | |
| | | state = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_PDict_HorseSkinState, horseSkinID)
|
| | | if not state and horseSkinIDList == None:
|
| | | continue
|
| | | horseSkin = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagSCHorseSkin)
|
| | | horseSkin = ChPyNetSendPack.tagSCHorseSkin()
|
| | | horseSkin.HorseSkinID = horseSkinID
|
| | | horseSkin.State = state
|
| | | horseSkin.EndTime = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_HorseSkinEndTime % horseSkinID)
|
| | |
| | | if not horseSkinList:
|
| | | return
|
| | |
|
| | | clientPack = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagSCHorseSkinInfo)
|
| | | clientPack = ChPyNetSendPack.tagSCHorseSkinInfo()
|
| | | clientPack.HorseSkinList = horseSkinList
|
| | | clientPack.Count = len(clientPack.HorseSkinList)
|
| | | NetPackCommon.SendFakePack(curPlayer, clientPack)
|